#42501A#42501A

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

Color values

HEX#42501A
RGBrgb(66, 80, 26)
HSLhsl(76, 51%, 21%)
HSVhsv(76, 68%, 31%)
CMYKcmyk(17.5%, 0%, 67.5%, 68.6%)
CIE-LABlab(31.74, -14.73, 29.16)
CIE-LCHlch(31.74, 32.67, 116.79°)
OKLaboklab(40.65% -0.0424 0.067)
OKLCHoklch(40.65% 0.079 122.3)
XYZxyz(5.3019, 6.9701, 2.0431)
Luminance0.0697 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42501A #281A50
analogous
#50431A #42501A #27501A
triadic
#42501A #1A4250 #501A42
tetradic
#42501A #1A5043 #281A50 #501A27
square
#42501A #1A5043 #281A50 #501A27
split-complementary
#42501A #1A2750 #431A50
monochromatic
#131708 #1C220B #42501A #687E29 #8EAC38

Accessibility & contrast

On white

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

On black

2.39
#42501A on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##42501A#FFFFFF#000000##FFFFFF
##42501A1.008.772.398.77
#FFFFFF8.771.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#554B14
Deuteranopia (green-blind)
#534B1E
Tritanopia (blue-blind)
#464C45
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #42501a;
/* rgb */ color: rgb(66, 80, 26);
/* oklch */ color: oklch(40.6% 0.079 122.3);
Tailwind
colors: {
  custom: {
    50: '#788159',
    500: '#42501a',
    950: '#000000',
  },
}
SCSS
$custom: #42501a;
$custom-light: #788159;
$custom-dark: #000000;
JSON
{
  "hex": "#42501a",
  "rgb": {
    "r": 66,
    "g": 80,
    "b": 26
  },
  "hsl": {
    "h": 75.556,
    "s": 50.943,
    "l": 20.784
  },
  "oklch": {
    "l": 0.40648,
    "c": 0.07932,
    "h": 122.3
  },
  "luminance": 0.0697
}

Semantic roles & 50–950 ramp

primary
#42501A
secondary
#524086
accent
#4DDA72
background
#F7F7F5
surface
#EDEEE9
border
#C8C9C5
text
#090A04
muted
#7B7C79

Preview Lab

Preview with #42501A

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

Preview Lab → · Contrast checker → · Palette generator →

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