#40390A#40390A

#40390A is a dark, moderate yellow. Relative luminance 0.040; OKLCH L 34.2% C 0.064 H 100.5°. Best body text is #FFFFFF at 11.62:1 contrast (WCAG AA passes).

Color values

HEX#40390A
RGBrgb(64, 57, 10)
HSLhsl(52, 73%, 15%)
HSVhsv(52, 84%, 25%)
CMYKcmyk(0%, 10.9%, 84.4%, 74.9%)
CIE-LABlab(23.80, -3.12, 28.51)
CIE-LCHlch(23.80, 28.68, 96.25°)
OKLaboklab(34.2% -0.0116 0.0628)
OKLCHoklch(34.2% 0.064 100.5)
XYZxyz(3.6324, 4.0383, 0.8752)
Luminance0.0404 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40390A #0A1140
analogous
#401E0A #40390A #2C400A
triadic
#40390A #0A4039 #390A40
tetradic
#40390A #0A401E #0A1140 #400A2C
square
#40390A #0A401E #0A1140 #400A2C
split-complementary
#40390A #0A2C40 #1E0A40
monochromatic
#1A1804 #1A1804 #40390A #756812 #AA971B

Accessibility & contrast

On white

11.62
#40390A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#40390A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40390A
11.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40390A#FFFFFF#000000##FFFFFF
##40390A1.0011.621.8111.62
#FFFFFF11.621.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.621.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #40390a;
/* rgb */ color: rgb(64, 57, 10);
/* oklch */ color: oklch(34.2% 0.064 100.5);
Tailwind
colors: {
  custom: {
    50: '#776f4d',
    500: '#40390a',
    950: '#000000',
  },
}
SCSS
$custom: #40390a;
$custom-light: #776f4d;
$custom-dark: #000000;
JSON
{
  "hex": "#40390a",
  "rgb": {
    "r": 64,
    "g": 57,
    "b": 10
  },
  "hsl": {
    "h": 52.222,
    "s": 72.973,
    "l": 14.51
  },
  "oklch": {
    "l": 0.34202,
    "c": 0.06391,
    "h": 100.5
  },
  "luminance": 0.04038
}

Semantic roles & 50–950 ramp

primary
#40390A
secondary
#29347D
accent
#50F038
background
#F7F6F4
surface
#EDECE7
border
#C8C7C3
text
#090701
muted
#7B7A77

Preview Lab

Preview with #40390A

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

Preview Lab → · Contrast checker → · Palette generator →

#40390A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva