#403F04#403F04

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

Color values

HEX#403F04
RGBrgb(64, 63, 4)
HSLhsl(59, 88%, 13%)
HSVhsv(59, 94%, 25%)
CMYKcmyk(0%, 1.6%, 93.8%, 74.9%)
CIE-LABlab(25.73, -7.19, 32.81)
CIE-LCHlch(25.73, 33.59, 102.36°)
OKLaboklab(35.72% -0.0237 0.0706)
OKLCHoklch(35.72% 0.074 108.6)
XYZxyz(3.9139, 4.6539, 0.8070)
Luminance0.0465 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403F04 #040540
analogous
#402104 #403F04 #234004
triadic
#403F04 #04403F #3F0440
tetradic
#403F04 #044021 #040540 #400423
square
#403F04 #044021 #040540 #400423
split-complementary
#403F04 #042340 #210440
monochromatic
#1D1C02 #1D1C02 #403F04 #7A7808 #B3B00B

Accessibility & contrast

On white

10.88
#403F04 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #403F04
10.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403F04#FFFFFF#000000##FFFFFF
##403F041.0010.881.9310.88
#FFFFFF10.881.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.881.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #403f04;
/* rgb */ color: rgb(64, 63, 4);
/* oklch */ color: oklch(35.7% 0.074 108.6);
Tailwind
colors: {
  custom: {
    50: '#77734b',
    500: '#403f04',
    950: '#000000',
  },
}
SCSS
$custom: #403f04;
$custom-light: #77734b;
$custom-dark: #000000;
JSON
{
  "hex": "#403f04",
  "rgb": {
    "r": 64,
    "g": 63,
    "b": 4
  },
  "hsl": {
    "h": 59,
    "s": 88.235,
    "l": 13.333
  },
  "oklch": {
    "l": 0.35724,
    "c": 0.07447,
    "h": 108.6
  },
  "luminance": 0.04654
}

Semantic roles & 50–950 ramp

primary
#403F04
secondary
#1F2081
accent
#2DFE29
background
#F7F6F4
surface
#EDECE7
border
#C8C7C3
text
#090801
muted
#7B7B77

Preview Lab

Preview with #403F04

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

Preview Lab → · Contrast checker → · Palette generator →

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