#42851F#42851F

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

Color values

HEX#42851F
RGBrgb(66, 133, 31)
HSLhsl(99, 62%, 32%)
HSVhsv(99, 77%, 52%)
CMYKcmyk(50.4%, 0%, 76.7%, 47.8%)
CIE-LABlab(49.53, -39.69, 45.40)
CIE-LCHlch(49.53, 60.30, 131.16°)
OKLaboklab(55.17% -0.1101 0.1019)
OKLCHoklch(55.17% 0.15 137.2)
XYZxyz(10.8813, 18.0315, 4.2031)
Luminance0.1803 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42851F #621F85
analogous
#75851F #42851F #1F852F
triadic
#42851F #1F4285 #851F42
tetradic
#42851F #1F7585 #621F85 #852F1F
square
#42851F #1F7585 #621F85 #852F1F
split-complementary
#42851F #2F1F85 #851F75
monochromatic
#112208 #295313 #42851F #5BB72B #79D54A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##42851F#FFFFFF#000000##000000
##42851F1.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)
#8A790A
Deuteranopia (green-blind)
#81742A
Tritanopia (blue-blind)
#3E8071
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #42851f;
/* rgb */ color: rgb(66, 133, 31);
/* oklch */ color: oklch(55.2% 0.150 137.2);
Tailwind
colors: {
  custom: {
    50: '#7da962',
    500: '#42851f',
    950: '#000000',
  },
}
SCSS
$custom: #42851f;
$custom-light: #7da962;
$custom-dark: #000000;
JSON
{
  "hex": "#42851f",
  "rgb": {
    "r": 66,
    "g": 133,
    "b": 31
  },
  "hsl": {
    "h": 99.412,
    "s": 62.195,
    "l": 32.157
  },
  "oklch": {
    "l": 0.55174,
    "c": 0.14998,
    "h": 137.2
  },
  "luminance": 0.18032
}

Semantic roles & 50–950 ramp

primary
#42851F
secondary
#9149B7
accent
#43E5AD
background
#F8FAF6
surface
#EFF4EB
border
#CACEC6
text
#0A1005
muted
#7C7F7A

Preview Lab

Preview with #42851F

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

Preview Lab → · Contrast checker → · Palette generator →

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