#403907#403907

#403907 is a dark, moderate yellow. Relative luminance 0.040; OKLCH L 34.2% C 0.066 H 100.9°. Best body text is #FFFFFF at 11.63:1 contrast (WCAG AA passes).

Color values

HEX#403907
RGBrgb(64, 57, 7)
HSLhsl(53, 80%, 14%)
HSVhsv(53, 89%, 25%)
CMYKcmyk(0%, 10.9%, 89.1%, 74.9%)
CIE-LABlab(23.78, -3.29, 29.71)
CIE-LCHlch(23.78, 29.89, 96.31°)
OKLaboklab(34.18% -0.0125 0.0649)
OKLCHoklch(34.18% 0.066 100.9)
XYZxyz(3.6160, 4.0318, 0.7887)
Luminance0.0403 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403907 #070E40
analogous
#401D07 #403907 #2B4007
triadic
#403907 #074039 #390740
tetradic
#403907 #07401D #070E40 #40072B
square
#403907 #07401D #070E40 #40072B
split-complementary
#403907 #072B40 #1D0740
monochromatic
#1C1903 #1C1903 #403907 #776A0D #AE9B13

Accessibility & contrast

On white

11.63
#403907 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#403907 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403907
11.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403907#FFFFFF#000000##FFFFFF
##4039071.0011.631.8111.63
#FFFFFF11.631.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3F3700
Deuteranopia (green-blind)
#413A0B
Tritanopia (blue-blind)
#463430
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #403907;
/* rgb */ color: rgb(64, 57, 7);
/* oklch */ color: oklch(34.2% 0.066 100.9);
Tailwind
colors: {
  custom: {
    50: '#776f4c',
    500: '#403907',
    950: '#000000',
  },
}
SCSS
$custom: #403907;
$custom-light: #776f4c;
$custom-dark: #000000;
JSON
{
  "hex": "#403907",
  "rgb": {
    "r": 64,
    "g": 57,
    "b": 7
  },
  "hsl": {
    "h": 52.632,
    "s": 80.282,
    "l": 13.922
  },
  "oklch": {
    "l": 0.34178,
    "c": 0.06608,
    "h": 100.9
  },
  "luminance": 0.04032
}

Semantic roles & 50–950 ramp

primary
#403907
secondary
#242F7F
accent
#49F731
background
#F7F6F4
surface
#EDECE7
border
#C8C7C3
text
#090701
muted
#7B7A77

Preview Lab

Preview with #403907

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

Preview Lab → · Contrast checker → · Palette generator →

#403907 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva