#403C17#403C17

#403C17 is a dark, muted yellow. Relative luminance 0.044; OKLCH L 35.1% C 0.055 H 103.2°. Best body text is #FFFFFF at 11.19:1 contrast (WCAG AA passes).

Color values

HEX#403C17
RGBrgb(64, 60, 23)
HSLhsl(54, 47%, 17%)
HSVhsv(54, 64%, 25%)
CMYKcmyk(0%, 6.2%, 64.1%, 74.9%)
CIE-LABlab(24.90, -4.06, 23.09)
CIE-LCHlch(24.90, 23.45, 99.98°)
OKLaboklab(35.12% -0.0126 0.0537)
OKLCHoklch(35.12% 0.055 103.2)
XYZxyz(3.8850, 4.3837, 1.4519)
Luminance0.0438 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403C17 #171B40
analogous
#402817 #403C17 #304017
triadic
#403C17 #17403C #3C1740
tetradic
#403C17 #174028 #171B40 #401730
square
#403C17 #174028 #171B40 #401730
split-complementary
#403C17 #173040 #281740
monochromatic
#171508 #171508 #403C17 #6D6627 #9A9037

Accessibility & contrast

On white

11.19
#403C17 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#403C17 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403C17
11.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403C17#FFFFFF#000000##FFFFFF
##403C171.0011.191.8811.19
#FFFFFF11.191.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#413A13
Deuteranopia (green-blind)
#433C19
Tritanopia (blue-blind)
#453834
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #403c17;
/* rgb */ color: rgb(64, 60, 23);
/* oklch */ color: oklch(35.1% 0.055 103.2);
Tailwind
colors: {
  custom: {
    50: '#767155',
    500: '#403c17',
    950: '#000000',
  },
}
SCSS
$custom: #403c17;
$custom-light: #767155;
$custom-dark: #000000;
JSON
{
  "hex": "#403c17",
  "rgb": {
    "r": 64,
    "g": 60,
    "b": 23
  },
  "hsl": {
    "h": 54.146,
    "s": 47.126,
    "l": 17.059
  },
  "oklch": {
    "l": 0.3512,
    "c": 0.05516,
    "h": 103.2
  },
  "luminance": 0.04384
}

Semantic roles & 50–950 ramp

primary
#403C17
secondary
#3C4277
accent
#5ED751
background
#F7F6F5
surface
#EDECE9
border
#C8C7C5
text
#090703
muted
#7B7A78

Preview Lab

Preview with #403C17

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#403C17 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva