#403D0C#403D0C

#403D0C is a dark, moderate yellow. Relative luminance 0.045; OKLCH L 35.3% C 0.067 H 105.8°. Best body text is #FFFFFF at 11.11:1 contrast (WCAG AA passes).

Color values

HEX#403D0C
RGBrgb(64, 61, 12)
HSLhsl(57, 68%, 15%)
HSVhsv(57, 81%, 25%)
CMYKcmyk(0%, 4.7%, 81.2%, 74.9%)
CIE-LABlab(25.12, -5.53, 28.95)
CIE-LCHlch(25.12, 29.47, 100.81°)
OKLaboklab(35.26% -0.0182 0.0641)
OKLCHoklch(35.26% 0.067 105.8)
XYZxyz(3.8496, 4.4542, 1.0047)
Luminance0.0445 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403D0C #0C0F40
analogous
#40230C #403D0C #29400C
triadic
#403D0C #0C403D #3D0C40
tetradic
#403D0C #0C4023 #0C0F40 #400C29
square
#403D0C #0C4023 #0C0F40 #400C29
split-complementary
#403D0C #0C2940 #230C40
monochromatic
#1A1905 #1A1905 #403D0C #746E16 #A79F1F

Accessibility & contrast

On white

11.11
#403D0C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#403D0C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403D0C
11.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403D0C#FFFFFF#000000##FFFFFF
##403D0C1.0011.111.8911.11
#FFFFFF11.111.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#433A05
Deuteranopia (green-blind)
#443C0F
Tritanopia (blue-blind)
#453833
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #403d0c;
/* rgb */ color: rgb(64, 61, 12);
/* oklch */ color: oklch(35.3% 0.067 105.8);
Tailwind
colors: {
  custom: {
    50: '#77724f',
    500: '#403d0c',
    950: '#000000',
  },
}
SCSS
$custom: #403d0c;
$custom-light: #77724f;
$custom-dark: #000000;
JSON
{
  "hex": "#403d0c",
  "rgb": {
    "r": 64,
    "g": 61,
    "b": 12
  },
  "hsl": {
    "h": 56.538,
    "s": 68.421,
    "l": 14.902
  },
  "oklch": {
    "l": 0.35258,
    "c": 0.06664,
    "h": 105.8
  },
  "luminance": 0.04454
}

Semantic roles & 50–950 ramp

primary
#403D0C
secondary
#2C307C
accent
#47EB3D
background
#F7F6F4
surface
#EDECE7
border
#C8C7C3
text
#090702
muted
#7B7A78

Preview Lab

Preview with #403D0C

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

Preview Lab → · Contrast checker → · Palette generator →

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