#42831F#42831F

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

Color values

HEX#42831F
RGBrgb(66, 131, 31)
HSLhsl(99, 62%, 32%)
HSVhsv(99, 76%, 51%)
CMYKcmyk(49.6%, 0%, 76.3%, 48.6%)
CIE-LABlab(48.87, -38.87, 44.74)
CIE-LCHlch(48.87, 59.26, 130.98°)
OKLaboklab(54.63% -0.1078 0.1005)
OKLCHoklch(54.63% 0.147 137)
XYZxyz(10.6101, 17.4891, 4.1127)
Luminance0.1749 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42831F #601F83
analogous
#74831F #42831F #1F832E
triadic
#42831F #1F4283 #831F42
tetradic
#42831F #1F7483 #601F83 #832E1F
square
#42831F #1F7483 #601F83 #832E1F
split-complementary
#42831F #2E1F83 #831F74
monochromatic
#102008 #295213 #42831F #5BB42B #79D449

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##42831F#FFFFFF#000000##FFFFFF
##42831F1.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)
#88770B
Deuteranopia (green-blind)
#7F7229
Tritanopia (blue-blind)
#3E7E70
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #42831f;
/* rgb */ color: rgb(66, 131, 31);
/* oklch */ color: oklch(54.6% 0.147 137.0);
Tailwind
colors: {
  custom: {
    50: '#7da762',
    500: '#42831f',
    950: '#000000',
  },
}
SCSS
$custom: #42831f;
$custom-light: #7da762;
$custom-dark: #000000;
JSON
{
  "hex": "#42831f",
  "rgb": {
    "r": 66,
    "g": 131,
    "b": 31
  },
  "hsl": {
    "h": 99,
    "s": 61.728,
    "l": 31.765
  },
  "oklch": {
    "l": 0.54628,
    "c": 0.14742,
    "h": 137
  },
  "luminance": 0.1749
}

Semantic roles & 50–950 ramp

primary
#42831F
secondary
#8F48B6
accent
#43E5AC
background
#F7FAF6
surface
#EEF4EB
border
#C9CEC6
text
#0A0F05
muted
#7C7F7A

Preview Lab

Preview with #42831F

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

Preview Lab → · Contrast checker → · Palette generator →

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