#42541C#42541C

#42541C is a dark, moderate yellow-green. Relative luminance 0.076; OKLCH L 41.8% C 0.083 H 125.0°. Best body text is #FFFFFF at 8.34:1 contrast (WCAG AA passes).

Color values

HEX#42541C
RGBrgb(66, 84, 28)
HSLhsl(79, 50%, 22%)
HSVhsv(79, 67%, 33%)
CMYKcmyk(21.4%, 0%, 66.7%, 67.1%)
CIE-LABlab(33.10, -16.76, 29.64)
CIE-LCHlch(33.10, 34.05, 119.49°)
OKLaboklab(41.75% -0.0478 0.0683)
OKLCHoklch(41.75% 0.083 125)
XYZxyz(5.6267, 7.5827, 2.2656)
Luminance0.0758 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42541C #2E1C54
analogous
#544A1C #42541C #26541C
triadic
#42541C #1C4254 #541C42
tetradic
#42541C #1C544A #2E1C54 #541C26
square
#42541C #1C544A #2E1C54 #541C26
split-complementary
#42541C #1C2654 #4A1C54
monochromatic
#121708 #1E260D #42541C #66822B #8AB03B

Accessibility & contrast

On white

8.34
#42541C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #42541C
8.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42541C#FFFFFF#000000##FFFFFF
##42541C1.008.342.528.34
#FFFFFF8.341.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.341.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #42541c;
/* rgb */ color: rgb(66, 84, 28);
/* oklch */ color: oklch(41.8% 0.083 125.0);
Tailwind
colors: {
  custom: {
    50: '#78845b',
    500: '#42541c',
    950: '#000000',
  },
}
SCSS
$custom: #42541c;
$custom-light: #78845b;
$custom-dark: #000000;
JSON
{
  "hex": "#42541c",
  "rgb": {
    "r": 66,
    "g": 84,
    "b": 28
  },
  "hsl": {
    "h": 79.286,
    "s": 50,
    "l": 21.961
  },
  "oklch": {
    "l": 0.41752,
    "c": 0.08342,
    "h": 125
  },
  "luminance": 0.07583
}

Semantic roles & 50–950 ramp

primary
#42541C
secondary
#59428A
accent
#4EDA7B
background
#F7F8F5
surface
#EDEFE9
border
#C8CAC5
text
#090A04
muted
#7B7C79

Preview Lab

Preview with #42541C

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

Preview Lab → · Contrast checker → · Palette generator →

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