#40602F#40602F

#40602F is a mid, moderate yellow-green. Relative luminance 0.097; OKLCH L 45.1% C 0.084 H 135.7°. Best body text is #FFFFFF at 7.16:1 contrast (WCAG AA passes).

Color values

HEX#40602F
RGBrgb(64, 96, 47)
HSLhsl(99, 34%, 28%)
HSVhsv(99, 51%, 38%)
CMYKcmyk(33.3%, 0%, 51%, 62.4%)
CIE-LABlab(37.23, -21.75, 24.22)
CIE-LCHlch(37.23, 32.56, 131.93°)
OKLaboklab(45.14% -0.0598 0.0585)
OKLCHoklch(45.14% 0.084 135.7)
XYZxyz(6.8101, 9.6607, 4.1947)
Luminance0.0966 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40602F #4F2F60
analogous
#58602F #40602F #2F6036
triadic
#40602F #2F4060 #602F40
tetradic
#40602F #2F5860 #4F2F60 #60362F
square
#40602F #2F5860 #4F2F60 #60362F
split-complementary
#40602F #362F60 #602F58
monochromatic
#0E150A #25371B #40602F #5B8943 #78AF5B

Accessibility & contrast

On white

7.16
#40602F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#40602F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40602F
7.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40602F#FFFFFF#000000##FFFFFF
##40602F1.007.162.937.16
#FFFFFF7.161.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#63592B
Deuteranopia (green-blind)
#5E5732
Tritanopia (blue-blind)
#3F5D55
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #40602f;
/* rgb */ color: rgb(64, 96, 47);
/* oklch */ color: oklch(45.1% 0.084 135.7);
Tailwind
colors: {
  custom: {
    50: '#768d68',
    500: '#40602f',
    950: '#000000',
  },
}
SCSS
$custom: #40602f;
$custom-light: #768d68;
$custom-dark: #000000;
JSON
{
  "hex": "#40602f",
  "rgb": {
    "r": 64,
    "g": 96,
    "b": 47
  },
  "hsl": {
    "h": 99.184,
    "s": 34.266,
    "l": 28.039
  },
  "oklch": {
    "l": 0.45136,
    "c": 0.08368,
    "h": 135.7
  },
  "luminance": 0.09661
}

Semantic roles & 50–950 ramp

primary
#40602F
secondary
#7E5992
accent
#5DCAA5
background
#F7F8F6
surface
#EDF0EB
border
#C8CBC6
text
#090C06
muted
#7B7D7A

Preview Lab

Preview with #40602F

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

Preview Lab → · Contrast checker → · Palette generator →

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