#40380F#40380F

#40380F is a dark, muted yellow. Relative luminance 0.040; OKLCH L 34.0% C 0.059 H 98.1°. Best body text is #FFFFFF at 11.73:1 contrast (WCAG AA passes).

Color values

HEX#40380F
RGBrgb(64, 56, 15)
HSLhsl(50, 62%, 15%)
HSVhsv(50, 77%, 25%)
CMYKcmyk(0%, 12.5%, 76.6%, 74.9%)
CIE-LABlab(23.52, -2.18, 25.91)
CIE-LCHlch(23.52, 26.00, 94.81°)
OKLaboklab(33.99% -0.0083 0.0583)
OKLCHoklch(33.99% 0.059 98.1)
XYZxyz(3.6149, 3.9530, 1.0244)
Luminance0.0395 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40380F #0F1740
analogous
#401F0F #40380F #2F400F
triadic
#40380F #0F4038 #380F40
tetradic
#40380F #0F401F #0F1740 #400F2F
square
#40380F #0F401F #0F1740 #400F2F
split-complementary
#40380F #0F2F40 #1F0F40
monochromatic
#191606 #191606 #40380F #72631B #A38F26

Accessibility & contrast

On white

11.73
#40380F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #40380F
11.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40380F#FFFFFF#000000##FFFFFF
##40380F1.0011.731.7911.73
#FFFFFF11.731.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E360A
Deuteranopia (green-blind)
#403911
Tritanopia (blue-blind)
#463330
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #40380f;
/* rgb */ color: rgb(64, 56, 15);
/* oklch */ color: oklch(34.0% 0.059 98.1);
Tailwind
colors: {
  custom: {
    50: '#776e50',
    500: '#40380f',
    950: '#000000',
  },
}
SCSS
$custom: #40380f;
$custom-light: #776e50;
$custom-dark: #000000;
JSON
{
  "hex": "#40380f",
  "rgb": {
    "r": 64,
    "g": 56,
    "b": 15
  },
  "hsl": {
    "h": 50.204,
    "s": 62.025,
    "l": 15.49
  },
  "oklch": {
    "l": 0.33992,
    "c": 0.05893,
    "h": 98.1
  },
  "luminance": 0.03953
}

Semantic roles & 50–950 ramp

primary
#40380F
secondary
#303C7A
accent
#5DE543
background
#F7F6F4
surface
#EDEBE7
border
#C8C6C3
text
#090702
muted
#7B7A78

Preview Lab

Preview with #40380F

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

Preview Lab → · Contrast checker → · Palette generator →

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