#42831A#42831A

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

Color values

HEX#42831A
RGBrgb(66, 131, 26)
HSLhsl(97, 67%, 31%)
HSVhsv(97, 80%, 51%)
CMYKcmyk(49.6%, 0%, 80.2%, 48.6%)
CIE-LABlab(48.84, -39.20, 46.48)
CIE-LCHlch(48.84, 60.80, 130.14°)
OKLaboklab(54.59% -0.1091 0.1034)
OKLCHoklch(54.59% 0.15 136.5)
XYZxyz(10.5492, 17.4647, 3.7922)
Luminance0.1746 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42831A #5B1A83
analogous
#76831A #42831A #1A8326
triadic
#42831A #1A4283 #831A42
tetradic
#42831A #1A7683 #5B1A83 #83261A
square
#42831A #1A7683 #5B1A83 #83261A
split-complementary
#42831A #261A83 #831A76
monochromatic
#0F1D06 #285010 #42831A #5CB624 #79D93F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##42831A#FFFFFF#000000##FFFFFF
##42831A1.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)
#887700
Deuteranopia (green-blind)
#7F7226
Tritanopia (blue-blind)
#3F7E6F
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #42831a;
/* rgb */ color: rgb(66, 131, 26);
/* oklch */ color: oklch(54.6% 0.150 136.5);
Tailwind
colors: {
  custom: {
    50: '#7da760',
    500: '#42831a',
    950: '#000000',
  },
}
SCSS
$custom: #42831a;
$custom-light: #7da760;
$custom-dark: #000000;
JSON
{
  "hex": "#42831a",
  "rgb": {
    "r": 66,
    "g": 131,
    "b": 26
  },
  "hsl": {
    "h": 97.143,
    "s": 66.879,
    "l": 30.784
  },
  "oklch": {
    "l": 0.54594,
    "c": 0.15027,
    "h": 136.5
  },
  "luminance": 0.17465
}

Semantic roles & 50–950 ramp

primary
#42831A
secondary
#8A42B7
accent
#3EEAA8
background
#F8FAF5
surface
#EFF4EA
border
#CACEC6
text
#0A0F05
muted
#7C7F79

Preview Lab

Preview with #42831A

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

Preview Lab → · Contrast checker → · Palette generator →

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