#42851E#42851E

#42851E is a mid, vivid yellow-green. Relative luminance 0.180; OKLCH L 55.2% C 0.151 H 137.1°. Best body text is #000000 at 4.61:1 contrast (WCAG AA passes).

Color values

HEX#42851E
RGBrgb(66, 133, 30)
HSLhsl(99, 63%, 32%)
HSVhsv(99, 77%, 52%)
CMYKcmyk(50.4%, 0%, 77.4%, 47.8%)
CIE-LABlab(49.53, -39.76, 45.75)
CIE-LCHlch(49.53, 60.62, 130.99°)
OKLaboklab(55.17% -0.1103 0.1025)
OKLCHoklch(55.17% 0.151 137.1)
XYZxyz(10.8683, 18.0263, 4.1348)
Luminance0.1803 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42851E #611E85
analogous
#76851E #42851E #1E852E
triadic
#42851E #1E4285 #851E42
tetradic
#42851E #1E7685 #611E85 #852E1E
square
#42851E #1E7685 #611E85 #852E1E
split-complementary
#42851E #2E1E85 #851E76
monochromatic
#102107 #295313 #42851E #5BB729 #79D648

Accessibility & contrast

On white

4.56
#42851E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.61
#42851E on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #42851E
4.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42851E#FFFFFF#000000##000000
##42851E1.004.564.614.61
#FFFFFF4.561.0021.0021.00
#0000004.6121.001.001.00
##0000004.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#8A7907
Deuteranopia (green-blind)
#817429
Tritanopia (blue-blind)
#3E8071
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #42851e;
/* rgb */ color: rgb(66, 133, 30);
/* oklch */ color: oklch(55.2% 0.151 137.1);
Tailwind
colors: {
  custom: {
    50: '#7da962',
    500: '#42851e',
    950: '#000000',
  },
}
SCSS
$custom: #42851e;
$custom-light: #7da962;
$custom-dark: #000000;
JSON
{
  "hex": "#42851e",
  "rgb": {
    "r": 66,
    "g": 133,
    "b": 30
  },
  "hsl": {
    "h": 99.029,
    "s": 63.19,
    "l": 31.961
  },
  "oklch": {
    "l": 0.55167,
    "c": 0.15057,
    "h": 137.1
  },
  "luminance": 0.18027
}

Semantic roles & 50–950 ramp

primary
#42851E
secondary
#9047B8
accent
#42E6AD
background
#F8FAF6
surface
#EFF4EB
border
#CACEC6
text
#0A1005
muted
#7C7F7A

Preview Lab

Preview with #42851E

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

Preview Lab → · Contrast checker → · Palette generator →

#42851E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva