#403E07#403E07

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

Color values

HEX#403E07
RGBrgb(64, 62, 7)
HSLhsl(58, 80%, 14%)
HSVhsv(58, 89%, 25%)
CMYKcmyk(0%, 3.1%, 89.1%, 74.9%)
CIE-LABlab(25.41, -6.42, 31.30)
CIE-LCHlch(25.41, 31.95, 101.58°)
OKLaboklab(35.48% -0.0212 0.068)
OKLCHoklch(35.48% 0.071 107.3)
XYZxyz(3.8755, 4.5507, 0.8752)
Luminance0.0455 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403E07 #070940
analogous
#402207 #403E07 #264007
triadic
#403E07 #07403E #3E0740
tetradic
#403E07 #074022 #070940 #400726
square
#403E07 #074022 #070940 #400726
split-complementary
#403E07 #072640 #220740
monochromatic
#1C1B03 #1C1B03 #403E07 #77730D #AEA913

Accessibility & contrast

On white

10.99
#403E07 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #403E07
10.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403E07#FFFFFF#000000##FFFFFF
##403E071.0010.991.9110.99
#FFFFFF10.991.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.991.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #403e07;
/* rgb */ color: rgb(64, 62, 7);
/* oklch */ color: oklch(35.5% 0.071 107.3);
Tailwind
colors: {
  custom: {
    50: '#77734c',
    500: '#403e07',
    950: '#000000',
  },
}
SCSS
$custom: #403e07;
$custom-light: #77734c;
$custom-dark: #000000;
JSON
{
  "hex": "#403e07",
  "rgb": {
    "r": 64,
    "g": 62,
    "b": 7
  },
  "hsl": {
    "h": 57.895,
    "s": 80.282,
    "l": 13.922
  },
  "oklch": {
    "l": 0.35482,
    "c": 0.07127,
    "h": 107.3
  },
  "luminance": 0.04551
}

Semantic roles & 50–950 ramp

primary
#403E07
secondary
#24277F
accent
#38F731
background
#F7F6F4
surface
#EDECE7
border
#C8C7C3
text
#090801
muted
#7B7B77

Preview Lab

Preview with #403E07

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

Preview Lab → · Contrast checker → · Palette generator →

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