#403D07#403D07

#403D07 is a dark, moderate yellow. Relative luminance 0.044; OKLCH L 35.2% C 0.070 H 106.1°. Best body text is #FFFFFF at 11.12:1 contrast (WCAG AA passes).

Color values

HEX#403D07
RGBrgb(64, 61, 7)
HSLhsl(57, 80%, 14%)
HSVhsv(57, 89%, 25%)
CMYKcmyk(0%, 4.7%, 89.1%, 74.9%)
CIE-LABlab(25.09, -5.80, 30.99)
CIE-LCHlch(25.09, 31.53, 100.60°)
OKLaboklab(35.22% -0.0195 0.0674)
OKLCHoklch(35.22% 0.07 106.1)
XYZxyz(3.8216, 4.4430, 0.8572)
Luminance0.0444 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403D07 #070A40
analogous
#402107 #403D07 #274007
triadic
#403D07 #07403D #3D0740
tetradic
#403D07 #074021 #070A40 #400727
square
#403D07 #074021 #070A40 #400727
split-complementary
#403D07 #072740 #210740
monochromatic
#1C1A03 #1C1A03 #403D07 #77720D #AEA613

Accessibility & contrast

On white

11.12
#403D07 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #403D07
11.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403D07#FFFFFF#000000##FFFFFF
##403D071.0011.121.8911.12
#FFFFFF11.121.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#433A00
Deuteranopia (green-blind)
#443C0B
Tritanopia (blue-blind)
#463833
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #403d07;
/* rgb */ color: rgb(64, 61, 7);
/* oklch */ color: oklch(35.2% 0.070 106.1);
Tailwind
colors: {
  custom: {
    50: '#77724c',
    500: '#403d07',
    950: '#000000',
  },
}
SCSS
$custom: #403d07;
$custom-light: #77724c;
$custom-dark: #000000;
JSON
{
  "hex": "#403d07",
  "rgb": {
    "r": 64,
    "g": 61,
    "b": 7
  },
  "hsl": {
    "h": 56.842,
    "s": 80.282,
    "l": 13.922
  },
  "oklch": {
    "l": 0.3522,
    "c": 0.07017,
    "h": 106.1
  },
  "luminance": 0.04443
}

Semantic roles & 50–950 ramp

primary
#403D07
secondary
#24287F
accent
#3BF731
background
#F7F6F4
surface
#EDECE7
border
#C8C7C3
text
#090701
muted
#7B7A77

Preview Lab

Preview with #403D07

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

Preview Lab → · Contrast checker → · Palette generator →

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