#40751B#40751B

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

Color values

HEX#40751B
RGBrgb(64, 117, 27)
HSLhsl(95, 63%, 28%)
HSVhsv(95, 77%, 46%)
CMYKcmyk(45.3%, 0%, 76.9%, 54.1%)
CIE-LABlab(44.08, -33.85, 41.47)
CIE-LCHlch(44.08, 53.53, 129.22°)
OKLaboklab(50.66% -0.0944 0.0931)
OKLCHoklch(50.66% 0.133 135.4)
XYZxyz(8.6733, 13.8912, 3.2610)
Luminance0.1389 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40751B #501B75
analogous
#6D751B #40751B #1B7523
triadic
#40751B #1B4075 #751B40
tetradic
#40751B #1B6D75 #501B75 #75231B
square
#40751B #1B6D75 #501B75 #75231B
split-complementary
#40751B #231B75 #751B6D
monochromatic
#0E1906 #254310 #40751B #5BA726 #78D139

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##40751B#FFFFFF#000000##FFFFFF
##40751B1.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)
#796B09
Deuteranopia (green-blind)
#726724
Tritanopia (blue-blind)
#3E7064
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #40751b;
/* rgb */ color: rgb(64, 117, 27);
/* oklch */ color: oklch(50.7% 0.133 135.4);
Tailwind
colors: {
  custom: {
    50: '#7a9d5e',
    500: '#40751b',
    950: '#000000',
  },
}
SCSS
$custom: #40751b;
$custom-light: #7a9d5e;
$custom-dark: #000000;
JSON
{
  "hex": "#40751b",
  "rgb": {
    "r": 64,
    "g": 117,
    "b": 27
  },
  "hsl": {
    "h": 95.333,
    "s": 62.5,
    "l": 28.235
  },
  "oklch": {
    "l": 0.50659,
    "c": 0.1326,
    "h": 135.4
  },
  "luminance": 0.13892
}

Semantic roles & 50–950 ramp

primary
#40751B
secondary
#7F42A9
accent
#42E6A2
background
#F7F9F5
surface
#EEF2E9
border
#C9CCC5
text
#0A0E05
muted
#7C7E79

Preview Lab

Preview with #40751B

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

Preview Lab → · Contrast checker → · Palette generator →

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