#403E04#403E04

#403E04 is a dark, moderate yellow. Relative luminance 0.045; OKLCH L 35.5% C 0.073 H 107.5°. Best body text is #FFFFFF at 11.00:1 contrast (WCAG AA passes).

Color values

HEX#403E04
RGBrgb(64, 62, 4)
HSLhsl(58, 88%, 13%)
HSVhsv(58, 94%, 25%)
CMYKcmyk(0%, 3.1%, 93.8%, 74.9%)
CIE-LABlab(25.39, -6.57, 32.50)
CIE-LCHlch(25.39, 33.16, 101.43°)
OKLaboklab(35.46% -0.022 0.07)
OKLCHoklch(35.46% 0.073 107.5)
XYZxyz(3.8591, 4.5441, 0.7887)
Luminance0.0454 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403E04 #040640
analogous
#402004 #403E04 #244004
triadic
#403E04 #04403E #3E0440
tetradic
#403E04 #044020 #040640 #400424
square
#403E04 #044020 #040640 #400424
split-complementary
#403E04 #042440 #200440
monochromatic
#1D1C02 #1D1C02 #403E04 #7A7608 #B3AE0B

Accessibility & contrast

On white

11.00
#403E04 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #403E04
11.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403E04#FFFFFF#000000##FFFFFF
##403E041.0011.001.9111.00
#FFFFFF11.001.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.001.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #403e04;
/* rgb */ color: rgb(64, 62, 4);
/* oklch */ color: oklch(35.5% 0.073 107.5);
Tailwind
colors: {
  custom: {
    50: '#77734b',
    500: '#403e04',
    950: '#000000',
  },
}
SCSS
$custom: #403e04;
$custom-light: #77734b;
$custom-dark: #000000;
JSON
{
  "hex": "#403e04",
  "rgb": {
    "r": 64,
    "g": 62,
    "b": 4
  },
  "hsl": {
    "h": 58,
    "s": 88.235,
    "l": 13.333
  },
  "oklch": {
    "l": 0.3546,
    "c": 0.07337,
    "h": 107.5
  },
  "luminance": 0.04544
}

Semantic roles & 50–950 ramp

primary
#403E04
secondary
#1F2281
accent
#31FE29
background
#F7F6F4
surface
#EDECE7
border
#C8C7C3
text
#090801
muted
#7B7B77

Preview Lab

Preview with #403E04

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

Preview Lab → · Contrast checker → · Palette generator →

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