#40602D#40602D

#40602D is a mid, moderate yellow-green. Relative luminance 0.096; OKLCH L 45.1% C 0.086 H 135.0°. Best body text is #FFFFFF at 7.17:1 contrast (WCAG AA passes).

Color values

HEX#40602D
RGBrgb(64, 96, 45)
HSLhsl(98, 36%, 28%)
HSVhsv(98, 53%, 38%)
CMYKcmyk(33.3%, 0%, 53.1%, 62.4%)
CIE-LABlab(37.20, -22.03, 25.31)
CIE-LCHlch(37.20, 33.55, 131.04°)
OKLaboklab(45.1% -0.0607 0.0608)
OKLCHoklch(45.1% 0.086 135)
XYZxyz(6.7707, 9.6449, 3.9870)
Luminance0.0964 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40602D #4D2D60
analogous
#59602D #40602D #2D6033
triadic
#40602D #2D4060 #602D40
tetradic
#40602D #2D5960 #4D2D60 #60332D
square
#40602D #2D5960 #4D2D60 #60332D
split-complementary
#40602D #332D60 #602D59
monochromatic
#0E150A #243619 #40602D #5C8A41 #78B057

Accessibility & contrast

On white

7.17
#40602D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #40602D
7.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40602D#FFFFFF#000000##FFFFFF
##40602D1.007.172.937.17
#FFFFFF7.171.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#635929
Deuteranopia (green-blind)
#5F5730
Tritanopia (blue-blind)
#405D54
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #40602d;
/* rgb */ color: rgb(64, 96, 45);
/* oklch */ color: oklch(45.1% 0.086 135.0);
Tailwind
colors: {
  custom: {
    50: '#778d67',
    500: '#40602d',
    950: '#000000',
  },
}
SCSS
$custom: #40602d;
$custom-light: #778d67;
$custom-dark: #000000;
JSON
{
  "hex": "#40602d",
  "rgb": {
    "r": 64,
    "g": 96,
    "b": 45
  },
  "hsl": {
    "h": 97.647,
    "s": 36.17,
    "l": 27.647
  },
  "oklch": {
    "l": 0.45103,
    "c": 0.08591,
    "h": 135
  },
  "luminance": 0.09645
}

Semantic roles & 50–950 ramp

primary
#40602D
secondary
#7C5792
accent
#5CCCA2
background
#F7F8F6
surface
#EDF0EB
border
#C8CBC6
text
#090C06
muted
#7B7D7A

Preview Lab

Preview with #40602D

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

Preview Lab → · Contrast checker → · Palette generator →

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