#403E0C#403E0C

#403E0C is a dark, moderate yellow. Relative luminance 0.046; OKLCH L 35.5% C 0.068 H 107.1°. Best body text is #FFFFFF at 10.98:1 contrast (WCAG AA passes).

Color values

HEX#403E0C
RGBrgb(64, 62, 12)
HSLhsl(58, 68%, 15%)
HSVhsv(58, 81%, 25%)
CMYKcmyk(0%, 3.1%, 81.2%, 74.9%)
CIE-LABlab(25.45, -6.15, 29.26)
CIE-LCHlch(25.45, 29.90, 101.87°)
OKLaboklab(35.52% -0.0199 0.0648)
OKLCHoklch(35.52% 0.068 107.1)
XYZxyz(3.9035, 4.5619, 1.0227)
Luminance0.0456 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403E0C #0C0E40
analogous
#40240C #403E0C #28400C
triadic
#403E0C #0C403E #3E0C40
tetradic
#403E0C #0C4024 #0C0E40 #400C28
square
#403E0C #0C4024 #0C0E40 #400C28
split-complementary
#403E0C #0C2840 #240C40
monochromatic
#1A1905 #1A1905 #403E0C #747016 #A7A21F

Accessibility & contrast

On white

10.98
#403E0C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#403E0C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403E0C
10.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403E0C#FFFFFF#000000##FFFFFF
##403E0C1.0010.981.9110.98
#FFFFFF10.981.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#443B04
Deuteranopia (green-blind)
#453D10
Tritanopia (blue-blind)
#453934
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #403e0c;
/* rgb */ color: rgb(64, 62, 12);
/* oklch */ color: oklch(35.5% 0.068 107.1);
Tailwind
colors: {
  custom: {
    50: '#77734f',
    500: '#403e0c',
    950: '#000000',
  },
}
SCSS
$custom: #403e0c;
$custom-light: #77734f;
$custom-dark: #000000;
JSON
{
  "hex": "#403e0c",
  "rgb": {
    "r": 64,
    "g": 62,
    "b": 12
  },
  "hsl": {
    "h": 57.692,
    "s": 68.421,
    "l": 14.902
  },
  "oklch": {
    "l": 0.3552,
    "c": 0.06778,
    "h": 107.1
  },
  "luminance": 0.04562
}

Semantic roles & 50–950 ramp

primary
#403E0C
secondary
#2C2F7C
accent
#43EB3D
background
#F7F6F4
surface
#EDECE7
border
#C8C7C3
text
#090802
muted
#7B7B78

Preview Lab

Preview with #403E0C

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

Preview Lab → · Contrast checker → · Palette generator →

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