#40751C#40751C

#40751C is a mid, vivid yellow-green. Relative luminance 0.139; OKLCH L 50.7% C 0.132 H 135.5°. Best body text is #FFFFFF at 5.56:1 contrast (WCAG AA passes).

Color values

HEX#40751C
RGBrgb(64, 117, 28)
HSLhsl(96, 61%, 28%)
HSVhsv(96, 76%, 46%)
CMYKcmyk(45.3%, 0%, 76.1%, 54.1%)
CIE-LABlab(44.08, -33.77, 41.09)
CIE-LCHlch(44.08, 53.19, 129.42°)
OKLaboklab(50.67% -0.0942 0.0925)
OKLCHoklch(50.67% 0.132 135.5)
XYZxyz(8.6850, 13.8959, 3.3229)
Luminance0.1390 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40751C #511C75
analogous
#6C751C #40751C #1C7524
triadic
#40751C #1C4075 #751C40
tetradic
#40751C #1C6C75 #511C75 #75241C
square
#40751C #1C6C75 #511C75 #75241C
split-complementary
#40751C #241C75 #751C6C
monochromatic
#0E1906 #254410 #40751C #5BA628 #77D03B

Accessibility & contrast

On white

5.56
#40751C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.78
#40751C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #40751C
5.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40751C#FFFFFF#000000##FFFFFF
##40751C1.005.563.785.56
#FFFFFF5.561.0021.001.00
#0000003.7821.001.0021.00
##FFFFFF5.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#796B0B
Deuteranopia (green-blind)
#726725
Tritanopia (blue-blind)
#3E7064
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #40751c;
/* rgb */ color: rgb(64, 117, 28);
/* oklch */ color: oklch(50.7% 0.132 135.5);
Tailwind
colors: {
  custom: {
    50: '#7a9d5f',
    500: '#40751c',
    950: '#000000',
  },
}
SCSS
$custom: #40751c;
$custom-light: #7a9d5f;
$custom-dark: #000000;
JSON
{
  "hex": "#40751c",
  "rgb": {
    "r": 64,
    "g": 117,
    "b": 28
  },
  "hsl": {
    "h": 95.73,
    "s": 61.379,
    "l": 28.431
  },
  "oklch": {
    "l": 0.50666,
    "c": 0.13197,
    "h": 135.5
  },
  "luminance": 0.13896
}

Semantic roles & 50–950 ramp

primary
#40751C
secondary
#8044A9
accent
#43E4A3
background
#F7F9F5
surface
#EEF2E9
border
#C9CCC5
text
#0A0E05
muted
#7C7E79

Preview Lab

Preview with #40751C

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

Preview Lab → · Contrast checker → · Palette generator →

#40751C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva