#42841F#42841F

#42841F is a mid, vivid yellow-green. Relative luminance 0.178; OKLCH L 54.9% C 0.149 H 137.1°. Best body text is #FFFFFF at 4.61:1 contrast (WCAG AA passes).

Color values

HEX#42841F
RGBrgb(66, 132, 31)
HSLhsl(99, 62%, 32%)
HSVhsv(99, 77%, 52%)
CMYKcmyk(50%, 0%, 76.5%, 48.2%)
CIE-LABlab(49.20, -39.28, 45.07)
CIE-LCHlch(49.20, 59.78, 131.07°)
OKLaboklab(54.9% -0.109 0.1012)
OKLCHoklch(54.9% 0.149 137.1)
XYZxyz(10.7450, 17.7590, 4.1577)
Luminance0.1776 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42841F #611F84
analogous
#75841F #42841F #1F842F
triadic
#42841F #1F4284 #841F42
tetradic
#42841F #1F7584 #611F84 #842F1F
square
#42841F #1F7584 #611F84 #842F1F
split-complementary
#42841F #2F1F84 #841F75
monochromatic
#102108 #295213 #42841F #5BB62B #79D449

Accessibility & contrast

On white

4.61
#42841F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.55
#42841F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #42841F
4.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42841F#FFFFFF#000000##FFFFFF
##42841F1.004.614.554.61
#FFFFFF4.611.0021.001.00
#0000004.5521.001.0021.00
##FFFFFF4.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#89780A
Deuteranopia (green-blind)
#807329
Tritanopia (blue-blind)
#3E7F71
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #42841f;
/* rgb */ color: rgb(66, 132, 31);
/* oklch */ color: oklch(54.9% 0.149 137.1);
Tailwind
colors: {
  custom: {
    50: '#7da862',
    500: '#42841f',
    950: '#000000',
  },
}
SCSS
$custom: #42841f;
$custom-light: #7da862;
$custom-dark: #000000;
JSON
{
  "hex": "#42841f",
  "rgb": {
    "r": 66,
    "g": 132,
    "b": 31
  },
  "hsl": {
    "h": 99.208,
    "s": 61.963,
    "l": 31.961
  },
  "oklch": {
    "l": 0.54901,
    "c": 0.1487,
    "h": 137.1
  },
  "luminance": 0.1776
}

Semantic roles & 50–950 ramp

primary
#42841F
secondary
#9048B7
accent
#43E5AD
background
#F8FAF6
surface
#EFF4EB
border
#CACEC6
text
#0A1005
muted
#7C7F7A

Preview Lab

Preview with #42841F

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

Preview Lab → · Contrast checker → · Palette generator →

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