#42541B#42541B

#42541B is a dark, moderate yellow-green. Relative luminance 0.076; OKLCH L 41.7% C 0.084 H 124.8°. Best body text is #FFFFFF at 8.35:1 contrast (WCAG AA passes).

Color values

HEX#42541B
RGBrgb(66, 84, 27)
HSLhsl(79, 51%, 22%)
HSVhsv(79, 68%, 33%)
CMYKcmyk(21.4%, 0%, 67.9%, 67.1%)
CIE-LABlab(33.09, -16.85, 30.13)
CIE-LCHlch(33.09, 34.53, 119.22°)
OKLaboklab(41.74% -0.0482 0.0692)
OKLCHoklch(41.74% 0.084 124.8)
XYZxyz(5.6149, 7.5780, 2.2036)
Luminance0.0758 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42541B #2D1B54
analogous
#544A1B #42541B #26541B
triadic
#42541B #1B4254 #541B42
tetradic
#42541B #1B544A #2D1B54 #541B26
square
#42541B #1B544A #2D1B54 #541B26
split-complementary
#42541B #1B2654 #4A1B54
monochromatic
#121707 #1E260C #42541B #66822A #8BB139

Accessibility & contrast

On white

8.35
#42541B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#42541B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42541B
8.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42541B#FFFFFF#000000##FFFFFF
##42541B1.008.352.528.35
#FFFFFF8.351.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#594E14
Deuteranopia (green-blind)
#564E1F
Tritanopia (blue-blind)
#455048
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #42541b;
/* rgb */ color: rgb(66, 84, 27);
/* oklch */ color: oklch(41.7% 0.084 124.8);
Tailwind
colors: {
  custom: {
    50: '#78845a',
    500: '#42541b',
    950: '#000000',
  },
}
SCSS
$custom: #42541b;
$custom-light: #78845a;
$custom-dark: #000000;
JSON
{
  "hex": "#42541b",
  "rgb": {
    "r": 66,
    "g": 84,
    "b": 27
  },
  "hsl": {
    "h": 78.947,
    "s": 51.351,
    "l": 21.765
  },
  "oklch": {
    "l": 0.4174,
    "c": 0.08435,
    "h": 124.8
  },
  "luminance": 0.07578
}

Semantic roles & 50–950 ramp

primary
#42541B
secondary
#58418A
accent
#4DDB7A
background
#F7F8F5
surface
#EDEFE9
border
#C8CAC5
text
#090A04
muted
#7B7C79

Preview Lab

Preview with #42541B

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

Preview Lab → · Contrast checker → · Palette generator →

#42541B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva