#40340C#40340C

#40340C is a dark, muted yellow. Relative luminance 0.036; OKLCH L 32.9% C 0.058 H 91.8°. Best body text is #FFFFFF at 12.25:1 contrast (WCAG AA passes).

Color values

HEX#40340C
RGBrgb(64, 52, 12)
HSLhsl(46, 68%, 15%)
HSVhsv(46, 81%, 25%)
CMYKcmyk(0%, 18.8%, 81.2%, 74.9%)
CIE-LABlab(22.21, 0.21, 26.02)
CIE-LCHlch(22.21, 26.02, 89.53°)
OKLaboklab(32.95% -0.0019 0.0581)
OKLCHoklch(32.95% 0.058 91.8)
XYZxyz(3.4089, 3.5727, 0.8578)
Luminance0.0357 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40340C #0C1840
analogous
#401A0C #40340C #32400C
triadic
#40340C #0C4034 #340C40
tetradic
#40340C #0C401A #0C1840 #400C32
square
#40340C #0C401A #0C1840 #400C32
split-complementary
#40340C #0C3240 #1A0C40
monochromatic
#1A1505 #1A1505 #40340C #745E16 #A7881F

Accessibility & contrast

On white

12.25
#40340C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#40340C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40340C
12.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40340C#FFFFFF#000000##FFFFFF
##40340C1.0012.251.7112.25
#FFFFFF12.251.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B3307
Deuteranopia (green-blind)
#3E370E
Tritanopia (blue-blind)
#462F2C
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #40340c;
/* rgb */ color: rgb(64, 52, 12);
/* oklch */ color: oklch(32.9% 0.058 91.8);
Tailwind
colors: {
  custom: {
    50: '#776b4d',
    500: '#40340c',
    950: '#000000',
  },
}
SCSS
$custom: #40340c;
$custom-light: #776b4d;
$custom-dark: #000000;
JSON
{
  "hex": "#40340c",
  "rgb": {
    "r": 64,
    "g": 52,
    "b": 12
  },
  "hsl": {
    "h": 46.154,
    "s": 68.421,
    "l": 14.902
  },
  "oklch": {
    "l": 0.32947,
    "c": 0.05808,
    "h": 91.8
  },
  "luminance": 0.03573
}

Semantic roles & 50–950 ramp

primary
#40340C
secondary
#2C3E7C
accent
#65EB3D
background
#F7F6F4
surface
#EDEBE7
border
#C8C6C3
text
#090601
muted
#7B7A77

Preview Lab

Preview with #40340C

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

Preview Lab → · Contrast checker → · Palette generator →

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