#403F07#403F07

#403F07 is a dark, moderate yellow. Relative luminance 0.047; OKLCH L 35.7% C 0.072 H 108.5°. Best body text is #FFFFFF at 10.87:1 contrast (WCAG AA passes).

Color values

HEX#403F07
RGBrgb(64, 63, 7)
HSLhsl(59, 80%, 14%)
HSVhsv(59, 89%, 25%)
CMYKcmyk(0%, 1.6%, 89.1%, 74.9%)
CIE-LABlab(25.74, -7.03, 31.61)
CIE-LCHlch(25.74, 32.38, 102.54°)
OKLaboklab(35.75% -0.023 0.0687)
OKLCHoklch(35.75% 0.072 108.5)
XYZxyz(3.9304, 4.6605, 0.8935)
Luminance0.0466 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403F07 #070840
analogous
#402307 #403F07 #254007
triadic
#403F07 #07403F #3F0740
tetradic
#403F07 #074023 #070840 #400725
square
#403F07 #074023 #070840 #400725
split-complementary
#403F07 #072540 #230740
monochromatic
#1C1B03 #1C1B03 #403F07 #77750D #AEAC13

Accessibility & contrast

On white

10.87
#403F07 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#403F07 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403F07
10.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403F07#FFFFFF#000000##FFFFFF
##403F071.0010.871.9310.87
#FFFFFF10.871.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#453C00
Deuteranopia (green-blind)
#463E0C
Tritanopia (blue-blind)
#453A35
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #403f07;
/* rgb */ color: rgb(64, 63, 7);
/* oklch */ color: oklch(35.7% 0.072 108.5);
Tailwind
colors: {
  custom: {
    50: '#77734c',
    500: '#403f07',
    950: '#000000',
  },
}
SCSS
$custom: #403f07;
$custom-light: #77734c;
$custom-dark: #000000;
JSON
{
  "hex": "#403f07",
  "rgb": {
    "r": 64,
    "g": 63,
    "b": 7
  },
  "hsl": {
    "h": 58.947,
    "s": 80.282,
    "l": 13.922
  },
  "oklch": {
    "l": 0.35746,
    "c": 0.07238,
    "h": 108.5
  },
  "luminance": 0.0466
}

Semantic roles & 50–950 ramp

primary
#403F07
secondary
#24257F
accent
#35F731
background
#F7F6F4
surface
#EDECE7
border
#C8C7C3
text
#090801
muted
#7B7B77

Preview Lab

Preview with #403F07

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

Preview Lab → · Contrast checker → · Palette generator →

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