RAL Classic color

RAL 8028 Earth brown #513A2A

RAL 8028 Earth brown is shown here as #513A2A, a widely published sRGB approximation of the printed swatch. It is a dark grayish brown in the brown family. In OKLCH it sits at lightness 0.370, chroma 0.042 and hue 55.9°. The nearest CSS named color is saddlebrown (#8B4513), ΔE2000 16.0 away.

Relative luminance
0.0494
OKLCH L · C · h
0.370 · 0.042 · 55.9
Best text
White 10.56:1
Hue family
Brown

#513A2A color codes

HEX
#513A2A
RGB
rgb(81, 58, 42)
HSL
hsl(25, 32%, 24%)
OKLCH
oklch(0.370 0.042 55.9)
OKLab
oklab(0.370 0.023 0.035)
CIELAB (D65)
L* 26.57, a* 7.82, b* 13.92
XYZ (D65)
X 5.32, Y 4.94, Z 2.86
CMYK (naive)
cmyk(0%, 28%, 48%, 68%)

CIELAB and XYZ use the D65 white point; CSS lab() uses D50, so paste the OKLCH or HEX value into stylesheets. CMYK here is a plain formula with no press profile.

RAL and RAL Classic are trademarks of RAL gGmbH, which this site is not affiliated with. The sRGB value is an approximation of the printed swatch; check a physical RAL color card before you specify a paint.

Legibility

Contrast: is #513A2A accessible?

White text on it reaches 10.56:1, passing AAA. Black text fails at 1.98:1.

WCAG 2 gives the same ratio whichever color is the text; APCA does not, so its Lc changes sign and size with polarity.

Open the Contrast System
  • Black text on it

    1.98:1

    • AA fails
    • AA large fails
    • AAA fails
    • APCA Lc +9
  • White text on it

    10.56:1

    • AA passes
    • AA large passes
    • AAA passes
    • APCA Lc −98
  • As text on black

    1.98:1

    • AA fails
    • AA large fails
    • AAA fails
    • APCA Lc −8
  • As text on white

    10.56:1

    • AA passes
    • AA large passes
    • AAA passes
    • APCA Lc +94

Nearest versions that pass 4.5:1

  • For text on white

    #513A2A 10.56:1

    It already reaches 10.56:1 on white, so no change is needed.

  • For text on black

    #8A705E 4.55:1

    Lightening its OKLCH lightness from 0.37 to 0.56 reaches 4.55:1 on black, keeping the hue.

Checking another pair? Use the Contrast Checker.

Studio

Adjust #513A2A live

Move lightness, chroma and hue in OKLCH, or drag on the map. The map is every lightness and chroma at the current hue: sRGB inside the solid area, Display P3 out to the dashed line.

The studio needs JavaScript.

Scale

Shades and tints of #513A2A

Eleven OKLCH lightness steps at this hue, each with its contrast against white and black. #513A2A sits at step 800.

  1. 50#FFF2EA
    White
    1.09
    Black
    19.14
  2. 100#FEE6D6
    White
    1.19
    Black
    17.50
  3. 200#EBD2C1
    White
    1.44
    Black
    14.52
  4. 300#D2B8A6
    White
    1.88
    Black
    11.14
  5. 400#B69B89
    White
    2.61
    Black
    8.03
  6. 500#9A806E
    White
    3.69
    Black
    5.68
  7. 600#826958
    White
    5.10
    Black
    4.11
  8. 700#6A5242
    White
    7.24
    Black
    2.89
  9. 800This color#513A2A
    White
    10.56
    Black
    1.98
  10. 900#362418
    White
    14.76
    Black
    1.42
  11. 950#211207
    White
    18.19
    Black
    1.15

Under each step, white and black text on it; a bold figure passes 4.5:1.

Gamut

How vivid #513A2A can get

At its lightness and hue, sRGB reaches OKLCH chroma 0.091; #513A2A uses 46% of it. Display P3, which many recent phones and laptops show, reaches 0.104 there: 14% more.

0.00.20.40.60.80.20.40.60.8 460480500520540560580600620
  • sRGB
  • Display P3
  • Rec. 2020
  • Dominant wavelength
OKLCH chroma
0.042
sRGB edge
0.091
Display P3 edge
0.104
Rec. 2020 edge
0.105
Dominant wavelength
586 nm
Excitation purity
39%
Chromaticity
x 0.4055, y 0.3764
  • This color#513A2A
  • Most vivid in sRGB#633000
  • Most vivid in Display P3oklch(0.370 0.104 55.9)

On a screen without Display P3 the last tile shows the sRGB edge instead.

Use the wider color where screens show it
.accent {
  color: #513a2a;
}
@media (color-gamut: p3) {
  .accent { color: color(display-p3 0.3755 0.1887 0); }
}

Mixing

Mixing #513A2A

Each row is the same mix worked out in a different space, with the halfway color at its end. sRGB, which older CSS gradients use, can sag gray or dark in the middle; OKLab keeps the lightness steps even; OKLCH holds chroma and hue as it goes.

White #FFFFFF

  • sRGB50%#A89D95
  • OKLab50%#A4978E
  • OKLCH50%#A4978E

Black #000000

  • sRGB50%#291D15
  • OKLab50%#1A100A
  • OKLCH50%#1A100A

Its complement #294353

  • sRGB50%#3D3F3F
  • OKLab50%#3F3F40
  • OKLCH50%#4B384C
In CSS
/* A gradient and a mix, worked out in OKLCH */
background: linear-gradient(in oklch, #513a2a, white);
color: color-mix(in oklch, #513a2a 50%, white);

In use

#513A2A in an interface

A button, a link, a heading, a focused field, an icon and a chart line in this color, on a light page and a dark one. Each check is a WCAG 2 contrast minimum: 1.4.3 for text, 1.4.11 for the rest.

Light page

  • Button labelText, 4.5:110.56:1 Passes
  • Link and body-size textText, 4.5:110.56:1 Passes
  • Large headingLarge text, 3:110.56:1 Passes
  • Icons, borders and focus ringsNon-text, 3:110.56:1 Passes

Dark page

  • Button labelText, 4.5:110.56:1 Passes
  • Link and body-size textText, 4.5:11.77:1 Fails
  • Large headingLarge text, 3:11.77:1 Fails
  • Icons, borders and focus ringsNon-text, 3:11.77:1 Fails

For text on this page, the nearest shade that passes is #937967 4.61:1

Color vision

How #513A2A looks with color blindness

Achromatopsia changes it most, ΔE2000 12.9; tritanopia changes it least, 9.9.

Simulated with Machado et al. (2009) at full severity, in linear light.

Simulate a whole page What each type sees
  • Protanopia

    No working red (long-wavelength) cones

    #413C29 ΔE2000 11.2

    Distinct

    Reads as dark grayish brown

  • Deuteranopia

    No working green (medium-wavelength) cones

    #46412A ΔE2000 12.0

    Distinct

    Reads as dark grayish brown

  • Tritanopia

    No working blue (short-wavelength) cones

    #573636 ΔE2000 9.9

    Noticeable

    Reads as dark grayish brown

  • Achromatopsia

    No cone color vision; lightness only

    #3F3F3F ΔE2000 12.9

    Distinct

    Reads as dark gray

Pairing check

Checked against its complement, #294353. Their lightness contrast is only 1.01:1, so where hue collapses, add a label, icon or pattern.

VisionThe pairΔE2000Verdict
Normal vision#513A2A · #29435325.0Stays distinct
Protanopia#413C29 · #3C425420.6Stays distinct
Deuteranopia#46412A · #363E5323.6Stays distinct
Tritanopia#573636 · #16474834.7Stays distinct
Achromatopsia#3F3F3F · #4040400.3Easily confused

Harmony

Color harmonies for #513A2A

Its complement is #294353, a dark grayish blue, on the cool side of the wheel.

Hue rotations in OKLCH, mapped into sRGB by trimming chroma so hue and lightness stay put.

Open the Harmony Studio
  • Base#513A2A
  • Complement#294353

Complementary

Open in Harmony Studio
  • −30°#543734
  • Base#513A2A
  • +30°#4A3E25
  • Base#513A2A
  • +120°#26473F
  • +240°#413B54
  • Base#513A2A
  • +150°#23464A
  • +210°#353F56

Split-complementary

Open in Harmony Studio

Code

Design tokens

Ready-to-paste tokens in six formats. Rename them to fit your system.

CSS custom property

:root {
  --color-ral-8028: #513a2a;
}

Tailwind config

// tailwind.config.js
module.exports = {
  theme: {
    extend: {
      colors: {
        'ral-8028': '#513a2a',
      },
    },
  },
};

Tailwind v4 theme

/* app.css — Tailwind CSS v4 */
@import "tailwindcss";

@theme {
  --color-ral-8028: oklch(0.370 0.042 55.9);
}

Design token (W3C DTCG)

{
  "color": {
    "ral-8028": {
      "$type": "color",
      "$value": {
        "colorSpace": "srgb",
        "components": [0.3176, 0.2275, 0.1647],
        "hex": "#513a2a"
      },
      "$description": "RAL 8028 Earth brown (approximate sRGB)"
    }
  }
}

SwiftUI color

import SwiftUI

enum Palette {
    static let ral8028 = Color(.sRGB, red: 0.318, green: 0.227, blue: 0.165, opacity: 1)
}

Jetpack Compose color

import androidx.compose.ui.graphics.Color

object Palette {
    val Ral8028 = Color(0xFF513A2A)
}

Matches

The nearest match in each system

The closest CSS name, Tailwind shade, RAL Classic paint and Crayola crayon by ΔE2000; under 2 is hard to tell apart side by side. RAL and Crayola values approximate physical colors.

Tools

Open #513A2A in the tools

Each opens over this page. More colors live in the Color Library, and every color page is listed on the hub.