#42831E#42831E

#42831E is a mid, vivid yellow-green. Relative luminance 0.175; OKLCH L 54.6% C 0.148 H 136.9°. Best body text is #FFFFFF at 4.67:1 contrast (WCAG AA passes).

Color values

HEX#42831E
RGBrgb(66, 131, 30)
HSLhsl(99, 63%, 32%)
HSVhsv(99, 77%, 51%)
CMYKcmyk(49.6%, 0%, 77.1%, 48.6%)
CIE-LABlab(48.86, -38.94, 45.10)
CIE-LCHlch(48.86, 59.58, 130.80°)
OKLaboklab(54.62% -0.1081 0.1011)
OKLCHoklch(54.62% 0.148 136.9)
XYZxyz(10.5971, 17.4839, 4.0444)
Luminance0.1749 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42831E #5F1E83
analogous
#75831E #42831E #1E832D
triadic
#42831E #1E4283 #831E42
tetradic
#42831E #1E7583 #5F1E83 #832D1E
square
#42831E #1E7583 #5F1E83 #832D1E
split-complementary
#42831E #2D1E83 #831E75
monochromatic
#101F07 #295113 #42831E #5BB529 #79D547

Accessibility & contrast

On white

4.67
#42831E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.50
#42831E on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #42831E
4.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42831E#FFFFFF#000000##FFFFFF
##42831E1.004.674.504.67
#FFFFFF4.671.0021.001.00
#0000004.5021.001.0021.00
##FFFFFF4.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#887708
Deuteranopia (green-blind)
#7F7228
Tritanopia (blue-blind)
#3E7E70
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #42831e;
/* rgb */ color: rgb(66, 131, 30);
/* oklch */ color: oklch(54.6% 0.148 136.9);
Tailwind
colors: {
  custom: {
    50: '#7da762',
    500: '#42831e',
    950: '#000000',
  },
}
SCSS
$custom: #42831e;
$custom-light: #7da762;
$custom-dark: #000000;
JSON
{
  "hex": "#42831e",
  "rgb": {
    "r": 66,
    "g": 131,
    "b": 30
  },
  "hsl": {
    "h": 98.614,
    "s": 62.733,
    "l": 31.569
  },
  "oklch": {
    "l": 0.54621,
    "c": 0.14802,
    "h": 136.9
  },
  "luminance": 0.17485
}

Semantic roles & 50–950 ramp

primary
#42831E
secondary
#8E47B6
accent
#42E6AB
background
#F7FAF6
surface
#EEF4EB
border
#C9CEC6
text
#0A0F05
muted
#7C7F7A

Preview Lab

Preview with #42831E

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

Preview Lab → · Contrast checker → · Palette generator →

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