RAL Classic color

RAL 8017 Chocolate brown #45322E

RAL 8017 Chocolate brown is shown here as #45322E, a widely published sRGB approximation of the printed swatch. It is a dark grayish brown in the neutral family. In OKLCH it sits at lightness 0.338, chroma 0.029 and hue 32.1°. The nearest CSS named color is black (#000000), ΔE2000 17.7 away.

Relative luminance
0.0374
OKLCH L · C · h
0.338 · 0.029 · 32.1
Best text
White 12.00:1
Hue family
Neutral

#45322E color codes

HEX
#45322E
RGB
rgb(69, 50, 46)
HSL
hsl(10, 20%, 23%)
OKLCH
oklch(0.338 0.029 32.1)
OKLab
oklab(0.338 0.024 0.015)
CIELAB (D65)
L* 22.81, a* 7.92, b* 5.89
XYZ (D65)
X 4.09, Y 3.74, Z 3.09
CMYK (naive)
cmyk(0%, 28%, 33%, 73%)

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 #45322E accessible?

White text on it reaches 12.00:1, passing AAA. Black text fails at 1.74: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.74:1

    • AA fails
    • AA large fails
    • AAA fails
    • APCA Lc 0
  • White text on it

    12.00:1

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

    1.74:1

    • AA fails
    • AA large fails
    • AAA fails
    • APCA Lc 0
  • As text on white

    12.00:1

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

Nearest versions that pass 4.5:1

  • For text on white

    #45322E 12.00:1

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

  • For text on black

    #87716C 4.60:1

    Lightening its OKLCH lightness from 0.34 to 0.57 reaches 4.60:1 on black, keeping the hue.

Checking another pair? Use the Contrast Checker.

Studio

Adjust #45322E 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 #45322E

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

  1. 50#FFF2EF
    White
    1.09
    Black
    19.19
  2. 100#FBE6E1
    White
    1.19
    Black
    17.50
  3. 200#E8D2CD
    White
    1.44
    Black
    14.53
  4. 300#CFB8B3
    White
    1.88
    Black
    11.16
  5. 400#B29C97
    White
    2.59
    Black
    8.09
  6. 500#97807B
    White
    3.69
    Black
    5.68
  7. 600#7E6964
    White
    5.13
    Black
    4.09
  8. 700#67534E
    White
    7.18
    Black
    2.92
  9. 800This color#45322E
    White
    12.00
    Black
    1.74
  10. 900#342521
    White
    14.65
    Black
    1.43
  11. 950#1F1210
    White
    18.22
    Black
    1.15

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

Gamut

How vivid #45322E can get

At its lightness and hue, sRGB reaches OKLCH chroma 0.128; #45322E uses 22% of it. Display P3, which many recent phones and laptops show, reaches 0.144 there: 12% more.

0.00.20.40.60.80.20.40.60.8 460480500520540560580600620
  • sRGB
  • Display P3
  • Rec. 2020
  • Dominant wavelength
OKLCH chroma
0.029
sRGB edge
0.128
Display P3 edge
0.144
Rec. 2020 edge
0.143
Dominant wavelength
595 nm
Excitation purity
21%
Chromaticity
x 0.3742, y 0.3427
  • This color#45322E
  • Most vivid in sRGB#6A0D00
  • Most vivid in Display P3oklch(0.338 0.144 32.1)

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

Use the wider color where screens show it
.accent {
  color: #45322e;
}
@media (color-gamut: p3) {
  .accent { color: color(display-p3 0.3976 0.0522 0); }
}

Mixing

Mixing #45322E

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%#A29997
  • OKLab50%#9D928F
  • OKLCH50%#9D928F

Black #000000

  • sRGB50%#231917
  • OKLab50%#150D0B
  • OKLCH50%#150D0B

Its complement #253B40

  • sRGB50%#353737
  • OKLab50%#373737
  • OKLCH50%#3A3444
In CSS
/* A gradient and a mix, worked out in OKLCH */
background: linear-gradient(in oklch, #45322e, white);
color: color-mix(in oklch, #45322e 50%, white);

In use

#45322E 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:112.00:1 Passes
  • Link and body-size textText, 4.5:112.00:1 Passes
  • Large headingLarge text, 3:112.00:1 Passes
  • Icons, borders and focus ringsNon-text, 3:112.00:1 Passes

Dark page

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

For text on this page, the nearest shade that passes is #8E7873 4.53:1

Color vision

How #45322E looks with color blindness

Deuteranopia changes it most, ΔE2000 11.2; tritanopia changes it least, 4.0.

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

    #36342E ΔE2000 10.4

    Distinct

    Reads as dark gray

  • Deuteranopia

    No working green (medium-wavelength) cones

    #3B382E ΔE2000 11.2

    Distinct

    Reads as dark gray

  • Tritanopia

    No working blue (short-wavelength) cones

    #493031 ΔE2000 4.0

    Close match

    Reads as dark grayish brown

  • Achromatopsia

    No cone color vision; lightness only

    #363636 ΔE2000 10.2

    Distinct

    Reads as dark gray

Pairing check

A near-neutral has no complementary hue to pair with, so tell it apart from neighboring grays by lightness contrast alone.

Harmony

Color harmonies for #45322E

Its complement is #253B40, a dark grayish teal.

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

Open the Harmony Studio
  • Base#45322E
  • Complement#253B40

Complementary

Open in Harmony Studio
  • −30°#443136
  • Base#45322E
  • +30°#423428
  • Base#45322E
  • +120°#2C3C30
  • +240°#323746
  • Base#45322E
  • +150°#263C38
  • +210°#2A3945

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-8017: #45322e;
}

Tailwind config

// tailwind.config.js
module.exports = {
  theme: {
    extend: {
      colors: {
        'ral-8017': '#45322e',
      },
    },
  },
};

Tailwind v4 theme

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

@theme {
  --color-ral-8017: oklch(0.338 0.029 32.1);
}

Design token (W3C DTCG)

{
  "color": {
    "ral-8017": {
      "$type": "color",
      "$value": {
        "colorSpace": "srgb",
        "components": [0.2706, 0.1961, 0.1804],
        "hex": "#45322e"
      },
      "$description": "RAL 8017 Chocolate brown (approximate sRGB)"
    }
  }
}

SwiftUI color

import SwiftUI

enum Palette {
    static let ral8017 = Color(.sRGB, red: 0.271, green: 0.196, blue: 0.180, opacity: 1)
}

Jetpack Compose color

import androidx.compose.ui.graphics.Color

object Palette {
    val Ral8017 = Color(0xFF45322E)
}

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 #45322E in the tools

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