#40330B#40330B

#40330B is a dark, muted yellow. Relative luminance 0.035; OKLCH L 32.7% C 0.058 H 90.3°. Best body text is #FFFFFF at 12.38:1 contrast (WCAG AA passes).

Color values

HEX#40330B
RGBrgb(64, 51, 11)
HSLhsl(45, 71%, 15%)
HSVhsv(45, 83%, 25%)
CMYKcmyk(0%, 20.3%, 82.8%, 74.9%)
CIE-LABlab(21.88, 0.81, 26.11)
CIE-LCHlch(21.88, 26.13, 88.23°)
OKLaboklab(32.69% -0.0003 0.0582)
OKLCHoklch(32.69% 0.058 90.3)
XYZxyz(3.3588, 3.4820, 0.8117)
Luminance0.0348 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40330B #0B1840
analogous
#40190B #40330B #33400B
triadic
#40330B #0B4033 #330B40
tetradic
#40330B #0B4019 #0B1840 #400B33
square
#40330B #0B4019 #0B1840 #400B33
split-complementary
#40330B #0B3340 #190B40
monochromatic
#1A1504 #1A1504 #40330B #745D14 #A8861D

Accessibility & contrast

On white

12.38
#40330B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#40330B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40330B
12.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40330B#FFFFFF#000000##FFFFFF
##40330B1.0012.381.7012.38
#FFFFFF12.381.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A3206
Deuteranopia (green-blind)
#3D360D
Tritanopia (blue-blind)
#462E2B
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #40330b;
/* rgb */ color: rgb(64, 51, 11);
/* oklch */ color: oklch(32.7% 0.058 90.3);
Tailwind
colors: {
  custom: {
    50: '#776a4d',
    500: '#40330b',
    950: '#000000',
  },
}
SCSS
$custom: #40330b;
$custom-light: #776a4d;
$custom-dark: #000000;
JSON
{
  "hex": "#40330b",
  "rgb": {
    "r": 64,
    "g": 51,
    "b": 11
  },
  "hsl": {
    "h": 45.283,
    "s": 70.667,
    "l": 14.706
  },
  "oklch": {
    "l": 0.32687,
    "c": 0.05816,
    "h": 90.3
  },
  "luminance": 0.03482
}

Semantic roles & 50–950 ramp

primary
#40330B
secondary
#2A3E7D
accent
#66ED3A
background
#F7F6F4
surface
#EDEBE7
border
#C8C6C3
text
#090601
muted
#7B7A77

Preview Lab

Preview with #40330B

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

Preview Lab → · Contrast checker → · Palette generator →

#40330B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva