#403E0F#403E0F

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

Color values

HEX#403E0F
RGBrgb(64, 62, 15)
HSLhsl(58, 62%, 15%)
HSVhsv(58, 77%, 25%)
CMYKcmyk(0%, 3.1%, 76.6%, 74.9%)
CIE-LABlab(25.47, -5.96, 27.92)
CIE-LCHlch(25.47, 28.54, 102.06°)
OKLaboklab(35.55% -0.019 0.0626)
OKLCHoklch(35.55% 0.065 106.9)
XYZxyz(3.9233, 4.5699, 1.1272)
Luminance0.0457 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403E0F #0F1140
analogous
#40250F #403E0F #29400F
triadic
#403E0F #0F403E #3E0F40
tetradic
#403E0F #0F4025 #0F1140 #400F29
square
#403E0F #0F4025 #0F1140 #400F29
split-complementary
#403E0F #0F2940 #250F40
monochromatic
#191806 #191806 #403E0F #726E1B #A39E26

Accessibility & contrast

On white

10.97
#403E0F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #403E0F
10.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403E0F#FFFFFF#000000##FFFFFF
##403E0F1.0010.971.9110.97
#FFFFFF10.971.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#443B08
Deuteranopia (green-blind)
#453D12
Tritanopia (blue-blind)
#453935
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #403e0f;
/* rgb */ color: rgb(64, 62, 15);
/* oklch */ color: oklch(35.5% 0.065 106.9);
Tailwind
colors: {
  custom: {
    50: '#777350',
    500: '#403e0f',
    950: '#000000',
  },
}
SCSS
$custom: #403e0f;
$custom-light: #777350;
$custom-dark: #000000;
JSON
{
  "hex": "#403e0f",
  "rgb": {
    "r": 64,
    "g": 62,
    "b": 15
  },
  "hsl": {
    "h": 57.551,
    "s": 62.025,
    "l": 15.49
  },
  "oklch": {
    "l": 0.35547,
    "c": 0.0654,
    "h": 106.9
  },
  "luminance": 0.0457
}

Semantic roles & 50–950 ramp

primary
#403E0F
secondary
#30337A
accent
#49E543
background
#F7F6F4
surface
#EDECE7
border
#C8C7C3
text
#090802
muted
#7B7B78

Preview Lab

Preview with #403E0F

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

Preview Lab → · Contrast checker → · Palette generator →

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