#42851A#42851A

#42851A is a mid, vivid yellow-green. Relative luminance 0.180; OKLCH L 55.1% C 0.153 H 136.7°. Best body text is #000000 at 4.60:1 contrast (WCAG AA passes).

Color values

HEX#42851A
RGBrgb(66, 133, 26)
HSLhsl(98, 67%, 31%)
HSVhsv(98, 80%, 52%)
CMYKcmyk(50.4%, 0%, 80.5%, 47.8%)
CIE-LABlab(49.50, -40.02, 47.11)
CIE-LCHlch(49.50, 61.81, 130.35°)
OKLaboklab(55.14% -0.1113 0.1047)
OKLCHoklch(55.14% 0.153 136.7)
XYZxyz(10.8204, 18.0071, 3.8826)
Luminance0.1801 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42851A #5D1A85
analogous
#77851A #42851A #1A8527
triadic
#42851A #1A4285 #851A42
tetradic
#42851A #1A7785 #5D1A85 #85271A
square
#42851A #1A7785 #5D1A85 #85271A
split-complementary
#42851A #271A85 #851A77
monochromatic
#0F1F06 #295210 #42851A #5BB824 #79DA40

Accessibility & contrast

On white

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

On black

4.60
#42851A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #42851A
4.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42851A#FFFFFF#000000##000000
##42851A1.004.564.604.60
#FFFFFF4.561.0021.0021.00
#0000004.6021.001.001.00
##0000004.6021.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #42851a;
/* rgb */ color: rgb(66, 133, 26);
/* oklch */ color: oklch(55.1% 0.153 136.7);
Tailwind
colors: {
  custom: {
    50: '#7ea960',
    500: '#42851a',
    950: '#000000',
  },
}
SCSS
$custom: #42851a;
$custom-light: #7ea960;
$custom-dark: #000000;
JSON
{
  "hex": "#42851a",
  "rgb": {
    "r": 66,
    "g": 133,
    "b": 26
  },
  "hsl": {
    "h": 97.57,
    "s": 67.296,
    "l": 31.176
  },
  "oklch": {
    "l": 0.5514,
    "c": 0.15278,
    "h": 136.7
  },
  "luminance": 0.18008
}

Semantic roles & 50–950 ramp

primary
#42851A
secondary
#8C42B8
accent
#3EEAAA
background
#F8FAF5
surface
#EFF4EA
border
#CACEC6
text
#0A1005
muted
#7C7F79

Preview Lab

Preview with #42851A

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

Preview Lab → · Contrast checker → · Palette generator →

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