#42831D#42831D

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

Color values

HEX#42831D
RGBrgb(66, 131, 29)
HSLhsl(98, 64%, 31%)
HSVhsv(98, 78%, 51%)
CMYKcmyk(49.6%, 0%, 77.9%, 48.6%)
CIE-LABlab(48.86, -39.00, 45.46)
CIE-LCHlch(48.86, 59.90, 130.63°)
OKLaboklab(54.61% -0.1083 0.1017)
OKLCHoklch(54.61% 0.149 136.8)
XYZxyz(10.5845, 17.4788, 3.9782)
Luminance0.1748 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42831D #5E1D83
analogous
#75831D #42831D #1D832B
triadic
#42831D #1D4283 #831D42
tetradic
#42831D #1D7583 #5E1D83 #832B1D
square
#42831D #1D7583 #5E1D83 #832B1D
split-complementary
#42831D #2B1D83 #831D75
monochromatic
#101F07 #295112 #42831D #5BB528 #79D645

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##42831D#FFFFFF#000000##FFFFFF
##42831D1.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)
#887706
Deuteranopia (green-blind)
#7F7228
Tritanopia (blue-blind)
#3E7E70
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #42831d;
/* rgb */ color: rgb(66, 131, 29);
/* oklch */ color: oklch(54.6% 0.149 136.8);
Tailwind
colors: {
  custom: {
    50: '#7da761',
    500: '#42831d',
    950: '#000000',
  },
}
SCSS
$custom: #42831d;
$custom-light: #7da761;
$custom-dark: #000000;
JSON
{
  "hex": "#42831d",
  "rgb": {
    "r": 66,
    "g": 131,
    "b": 29
  },
  "hsl": {
    "h": 98.235,
    "s": 63.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.54614,
    "c": 0.1486,
    "h": 136.8
  },
  "luminance": 0.1748
}

Semantic roles & 50–950 ramp

primary
#42831D
secondary
#8D46B6
accent
#41E7AB
background
#F8FAF6
surface
#EFF4EB
border
#CACEC6
text
#0A0F05
muted
#7C7F7A

Preview Lab

Preview with #42831D

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

Preview Lab → · Contrast checker → · Palette generator →

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