#40481F#40481F

#40481F is a dark, moderate yellow-green. Relative luminance 0.058; OKLCH L 38.4% C 0.063 H 118.6°. Best body text is #FFFFFF at 9.70:1 contrast (WCAG AA passes).

Color values

HEX#40481F
RGBrgb(64, 72, 31)
HSLhsl(72, 40%, 20%)
HSVhsv(72, 57%, 28%)
CMYKcmyk(11.1%, 0%, 56.9%, 71.8%)
CIE-LABlab(28.96, -10.56, 23.27)
CIE-LCHlch(28.96, 25.55, 114.40°)
OKLaboklab(38.4% -0.03 0.0551)
OKLCHoklch(38.4% 0.063 118.6)
XYZxyz(4.6791, 5.8237, 2.1736)
Luminance0.0582 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40481F #271F48
analogous
#483B1F #40481F #2C481F
triadic
#40481F #1F4048 #481F40
tetradic
#40481F #1F483B #271F48 #481F2C
square
#40481F #1F483B #271F48 #481F2C
split-complementary
#40481F #1F2C48 #3B1F48
monochromatic
#131509 #1A1D0D #40481F #667331 #8C9E44

Accessibility & contrast

On white

9.70
#40481F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#40481F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40481F
9.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40481F#FFFFFF#000000##FFFFFF
##40481F1.009.702.169.70
#FFFFFF9.701.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4C441B
Deuteranopia (green-blind)
#4C4421
Tritanopia (blue-blind)
#43443F
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #40481f;
/* rgb */ color: rgb(64, 72, 31);
/* oklch */ color: oklch(38.4% 0.063 118.6);
Tailwind
colors: {
  custom: {
    50: '#767b5c',
    500: '#40481f',
    950: '#000000',
  },
}
SCSS
$custom: #40481f;
$custom-light: #767b5c;
$custom-dark: #000000;
JSON
{
  "hex": "#40481f",
  "rgb": {
    "r": 64,
    "g": 72,
    "b": 31
  },
  "hsl": {
    "h": 71.707,
    "s": 39.806,
    "l": 20.196
  },
  "oklch": {
    "l": 0.38395,
    "c": 0.0627,
    "h": 118.6
  },
  "luminance": 0.05824
}

Semantic roles & 50–950 ramp

primary
#40481F
secondary
#51467D
accent
#58D06F
background
#F7F7F5
surface
#EDEDE9
border
#C8C8C5
text
#080904
muted
#7B7B79

Preview Lab

Preview with #40481F

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

Preview Lab → · Contrast checker → · Palette generator →

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