#40390C#40390C

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

Color values

HEX#40390C
RGBrgb(64, 57, 12)
HSLhsl(52, 68%, 15%)
HSVhsv(52, 81%, 25%)
CMYKcmyk(0%, 10.9%, 81.2%, 74.9%)
CIE-LABlab(23.81, -3.01, 27.67)
CIE-LCHlch(23.81, 27.83, 96.21°)
OKLaboklab(34.22% -0.0111 0.0614)
OKLCHoklch(34.22% 0.062 100.2)
XYZxyz(3.6440, 4.0430, 0.9362)
Luminance0.0404 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40390C #0C1340
analogous
#401F0C #40390C #2D400C
triadic
#40390C #0C4039 #390C40
tetradic
#40390C #0C401F #0C1340 #400C2D
square
#40390C #0C401F #0C1340 #400C2D
split-complementary
#40390C #0C2D40 #1F0C40
monochromatic
#1A1705 #1A1705 #40390C #746716 #A7951F

Accessibility & contrast

On white

11.61
#40390C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #40390C
11.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40390C#FFFFFF#000000##FFFFFF
##40390C1.0011.611.8111.61
#FFFFFF11.611.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.611.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #40390c;
/* rgb */ color: rgb(64, 57, 12);
/* oklch */ color: oklch(34.2% 0.062 100.2);
Tailwind
colors: {
  custom: {
    50: '#776f4e',
    500: '#40390c',
    950: '#000000',
  },
}
SCSS
$custom: #40390c;
$custom-light: #776f4e;
$custom-dark: #000000;
JSON
{
  "hex": "#40390c",
  "rgb": {
    "r": 64,
    "g": 57,
    "b": 12
  },
  "hsl": {
    "h": 51.923,
    "s": 68.421,
    "l": 14.902
  },
  "oklch": {
    "l": 0.34219,
    "c": 0.06241,
    "h": 100.2
  },
  "luminance": 0.04043
}

Semantic roles & 50–950 ramp

primary
#40390C
secondary
#2C377C
accent
#54EB3D
background
#F7F6F4
surface
#EDECE7
border
#C8C7C3
text
#090702
muted
#7B7A78

Preview Lab

Preview with #40390C

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

Preview Lab → · Contrast checker → · Palette generator →

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