#42501C#42501C

#42501C is a dark, moderate yellow-green. Relative luminance 0.070; OKLCH L 40.7% C 0.077 H 122.6°. Best body text is #FFFFFF at 8.77:1 contrast (WCAG AA passes).

Color values

HEX#42501C
RGBrgb(66, 80, 28)
HSLhsl(76, 48%, 21%)
HSVhsv(76, 65%, 31%)
CMYKcmyk(17.5%, 0%, 65%, 68.6%)
CIE-LABlab(31.76, -14.54, 28.16)
CIE-LCHlch(31.76, 31.69, 117.31°)
OKLaboklab(40.67% -0.0416 0.0652)
OKLCHoklch(40.67% 0.077 122.6)
XYZxyz(5.3251, 6.9794, 2.1650)
Luminance0.0698 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42501C #2A1C50
analogous
#50441C #42501C #28501C
triadic
#42501C #1C4250 #501C42
tetradic
#42501C #1C5044 #2A1C50 #501C28
square
#42501C #1C5044 #2A1C50 #501C28
split-complementary
#42501C #1C2850 #441C50
monochromatic
#131708 #1D230C #42501C #677D2C #8DAB3C

Accessibility & contrast

On white

8.77
#42501C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#42501C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42501C
8.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42501C#FFFFFF#000000##FFFFFF
##42501C1.008.772.408.77
#FFFFFF8.771.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#554B16
Deuteranopia (green-blind)
#534B1F
Tritanopia (blue-blind)
#454C45
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #42501c;
/* rgb */ color: rgb(66, 80, 28);
/* oklch */ color: oklch(40.7% 0.077 122.6);
Tailwind
colors: {
  custom: {
    50: '#78815a',
    500: '#42501c',
    950: '#000000',
  },
}
SCSS
$custom: #42501c;
$custom-light: #78815a;
$custom-dark: #000000;
JSON
{
  "hex": "#42501c",
  "rgb": {
    "r": 66,
    "g": 80,
    "b": 28
  },
  "hsl": {
    "h": 76.154,
    "s": 48.148,
    "l": 21.176
  },
  "oklch": {
    "l": 0.40672,
    "c": 0.07737,
    "h": 122.6
  },
  "luminance": 0.06979
}

Semantic roles & 50–950 ramp

primary
#42501C
secondary
#544286
accent
#50D875
background
#F7F7F5
surface
#EDEEE9
border
#C8C9C5
text
#090A04
muted
#7B7C79

Preview Lab

Preview with #42501C

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

Preview Lab → · Contrast checker → · Palette generator →

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