#40380A#40380A

#40380A is a dark, moderate yellow. Relative luminance 0.039; OKLCH L 33.9% C 0.063 H 99.0°. Best body text is #FFFFFF at 11.74:1 contrast (WCAG AA passes).

Color values

HEX#40380A
RGBrgb(64, 56, 10)
HSLhsl(51, 73%, 15%)
HSVhsv(51, 84%, 25%)
CMYKcmyk(0%, 12.5%, 84.4%, 74.9%)
CIE-LABlab(23.47, -2.49, 28.19)
CIE-LCHlch(23.47, 28.30, 95.04°)
OKLaboklab(33.95% -0.0098 0.0622)
OKLCHoklch(33.95% 0.063 99)
XYZxyz(3.5835, 3.9404, 0.8589)
Luminance0.0394 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40380A #0A1240
analogous
#401D0A #40380A #2D400A
triadic
#40380A #0A4038 #380A40
tetradic
#40380A #0A401D #0A1240 #400A2D
square
#40380A #0A401D #0A1240 #400A2D
split-complementary
#40380A #0A2D40 #1D0A40
monochromatic
#1A1704 #1A1704 #40380A #756612 #AA951B

Accessibility & contrast

On white

11.74
#40380A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#40380A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40380A
11.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40380A#FFFFFF#000000##FFFFFF
##40380A1.0011.741.7911.74
#FFFFFF11.741.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E3604
Deuteranopia (green-blind)
#41390D
Tritanopia (blue-blind)
#46332F
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #40380a;
/* rgb */ color: rgb(64, 56, 10);
/* oklch */ color: oklch(33.9% 0.063 99.0);
Tailwind
colors: {
  custom: {
    50: '#776e4d',
    500: '#40380a',
    950: '#000000',
  },
}
SCSS
$custom: #40380a;
$custom-light: #776e4d;
$custom-dark: #000000;
JSON
{
  "hex": "#40380a",
  "rgb": {
    "r": 64,
    "g": 56,
    "b": 10
  },
  "hsl": {
    "h": 51.111,
    "s": 72.973,
    "l": 14.51
  },
  "oklch": {
    "l": 0.33945,
    "c": 0.06296,
    "h": 99
  },
  "luminance": 0.0394
}

Semantic roles & 50–950 ramp

primary
#40380A
secondary
#29357D
accent
#53F038
background
#F7F6F4
surface
#EDEBE7
border
#C8C6C3
text
#090701
muted
#7B7A77

Preview Lab

Preview with #40380A

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

Preview Lab → · Contrast checker → · Palette generator →

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