#42831C#42831C

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

Color values

HEX#42831C
RGBrgb(66, 131, 28)
HSLhsl(98, 65%, 31%)
HSVhsv(98, 79%, 51%)
CMYKcmyk(49.6%, 0%, 78.6%, 48.6%)
CIE-LABlab(48.85, -39.07, 45.81)
CIE-LCHlch(48.85, 60.21, 130.46°)
OKLaboklab(54.61% -0.1086 0.1023)
OKLCHoklch(54.61% 0.149 136.7)
XYZxyz(10.5724, 17.4740, 3.9141)
Luminance0.1747 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42831C #5D1C83
analogous
#75831C #42831C #1C8329
triadic
#42831C #1C4283 #831C42
tetradic
#42831C #1C7583 #5D1C83 #83291C
square
#42831C #1C7583 #5D1C83 #83291C
split-complementary
#42831C #291C83 #831C75
monochromatic
#0F1E06 #295111 #42831C #5BB527 #79D743

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##42831C#FFFFFF#000000##FFFFFF
##42831C1.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)
#887704
Deuteranopia (green-blind)
#7F7227
Tritanopia (blue-blind)
#3E7E70
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #42831c;
/* rgb */ color: rgb(66, 131, 28);
/* oklch */ color: oklch(54.6% 0.149 136.7);
Tailwind
colors: {
  custom: {
    50: '#7da761',
    500: '#42831c',
    950: '#000000',
  },
}
SCSS
$custom: #42831c;
$custom-light: #7da761;
$custom-dark: #000000;
JSON
{
  "hex": "#42831c",
  "rgb": {
    "r": 66,
    "g": 131,
    "b": 28
  },
  "hsl": {
    "h": 97.864,
    "s": 64.78,
    "l": 31.176
  },
  "oklch": {
    "l": 0.54607,
    "c": 0.14917,
    "h": 136.7
  },
  "luminance": 0.17475
}

Semantic roles & 50–950 ramp

primary
#42831C
secondary
#8C45B6
accent
#40E8AA
background
#F8FAF5
surface
#EFF4EA
border
#CACEC6
text
#0A0F05
muted
#7C7F79

Preview Lab

Preview with #42831C

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

Preview Lab → · Contrast checker → · Palette generator →

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