#42841C#42841C

#42841C is a mid, vivid yellow-green. Relative luminance 0.177; OKLCH L 54.9% C 0.150 H 136.8°. Best body text is #FFFFFF at 4.62:1 contrast (WCAG AA passes).

Color values

HEX#42841C
RGBrgb(66, 132, 28)
HSLhsl(98, 65%, 31%)
HSVhsv(98, 79%, 52%)
CMYKcmyk(50%, 0%, 78.8%, 48.2%)
CIE-LABlab(49.18, -39.48, 46.13)
CIE-LCHlch(49.18, 60.72, 130.56°)
OKLaboklab(54.88% -0.1097 0.1029)
OKLCHoklch(54.88% 0.15 136.8)
XYZxyz(10.7073, 17.7439, 3.9591)
Luminance0.1774 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42841C #5E1C84
analogous
#76841C #42841C #1C842A
triadic
#42841C #1C4284 #841C42
tetradic
#42841C #1C7684 #5E1C84 #842A1C
square
#42841C #1C7684 #5E1C84 #842A1C
split-complementary
#42841C #2A1C84 #841C76
monochromatic
#101F07 #295211 #42841C #5BB627 #79D743

Accessibility & contrast

On white

4.62
#42841C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #42841C
4.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42841C#FFFFFF#000000##FFFFFF
##42841C1.004.624.554.62
#FFFFFF4.621.0021.001.00
#0000004.5521.001.0021.00
##FFFFFF4.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#897803
Deuteranopia (green-blind)
#807327
Tritanopia (blue-blind)
#3E7F70
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #42841c;
/* rgb */ color: rgb(66, 132, 28);
/* oklch */ color: oklch(54.9% 0.150 136.8);
Tailwind
colors: {
  custom: {
    50: '#7da861',
    500: '#42841c',
    950: '#000000',
  },
}
SCSS
$custom: #42841c;
$custom-light: #7da861;
$custom-dark: #000000;
JSON
{
  "hex": "#42841c",
  "rgb": {
    "r": 66,
    "g": 132,
    "b": 28
  },
  "hsl": {
    "h": 98.077,
    "s": 65,
    "l": 31.373
  },
  "oklch": {
    "l": 0.5488,
    "c": 0.15044,
    "h": 136.8
  },
  "luminance": 0.17745
}

Semantic roles & 50–950 ramp

primary
#42841C
secondary
#8D45B7
accent
#40E8AB
background
#F8FAF6
surface
#EFF4EB
border
#CACEC6
text
#0A1005
muted
#7C7F7A

Preview Lab

Preview with #42841C

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

Preview Lab → · Contrast checker → · Palette generator →

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