#42831B#42831B

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

Color values

HEX#42831B
RGBrgb(66, 131, 27)
HSLhsl(98, 66%, 31%)
HSVhsv(98, 79%, 51%)
CMYKcmyk(49.6%, 0%, 79.4%, 48.6%)
CIE-LABlab(48.85, -39.13, 46.15)
CIE-LCHlch(48.85, 60.51, 130.30°)
OKLaboklab(54.6% -0.1088 0.1028)
OKLCHoklch(54.6% 0.15 136.6)
XYZxyz(10.5606, 17.4693, 3.8521)
Luminance0.1747 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42831B #5C1B83
analogous
#76831B #42831B #1B8328
triadic
#42831B #1B4283 #831B42
tetradic
#42831B #1B7683 #5C1B83 #83281B
square
#42831B #1B7683 #5C1B83 #83281B
split-complementary
#42831B #281B83 #831B76
monochromatic
#0F1E06 #285011 #42831B #5CB625 #79D841

Accessibility & contrast

On white

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

On black

4.49
#42831B on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##42831B#FFFFFF#000000##FFFFFF
##42831B1.004.674.494.67
#FFFFFF4.671.0021.001.00
#0000004.4921.001.0021.00
##FFFFFF4.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#887701
Deuteranopia (green-blind)
#7F7226
Tritanopia (blue-blind)
#3F7E70
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #42831b;
/* rgb */ color: rgb(66, 131, 27);
/* oklch */ color: oklch(54.6% 0.150 136.6);
Tailwind
colors: {
  custom: {
    50: '#7da760',
    500: '#42831b',
    950: '#000000',
  },
}
SCSS
$custom: #42831b;
$custom-light: #7da760;
$custom-dark: #000000;
JSON
{
  "hex": "#42831b",
  "rgb": {
    "r": 66,
    "g": 131,
    "b": 27
  },
  "hsl": {
    "h": 97.5,
    "s": 65.823,
    "l": 30.98
  },
  "oklch": {
    "l": 0.546,
    "c": 0.14973,
    "h": 136.6
  },
  "luminance": 0.1747
}

Semantic roles & 50–950 ramp

primary
#42831B
secondary
#8B43B6
accent
#3FE9A9
background
#F8FAF5
surface
#EFF4EA
border
#CACEC6
text
#0A0F05
muted
#7C7F79

Preview Lab

Preview with #42831B

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

Preview Lab → · Contrast checker → · Palette generator →

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