#42542E#42542E

#42542E is a dark, moderate yellow-green. Relative luminance 0.077; OKLCH L 42.0% C 0.063 H 129.5°. Best body text is #FFFFFF at 8.27:1 contrast (WCAG AA passes).

Color values

HEX#42542E
RGBrgb(66, 84, 46)
HSLhsl(88, 29%, 25%)
HSVhsv(88, 45%, 33%)
CMYKcmyk(21.4%, 0%, 45.2%, 67.1%)
CIE-LABlab(33.34, -14.59, 19.95)
CIE-LCHlch(33.34, 24.72, 126.18°)
OKLaboklab(42.03% -0.0401 0.0488)
OKLCHoklch(42.03% 0.063 129.5)
XYZxyz(5.9102, 7.6961, 3.7584)
Luminance0.0770 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42542E #402E54
analogous
#54532E #42542E #2F542E
triadic
#42542E #2E4254 #542E42
tetradic
#42542E #2E5453 #402E54 #542E2F
square
#42542E #2E5453 #402E54 #542E2F
split-complementary
#42542E #2E2F54 #532E54
monochromatic
#10140B #232C18 #42542E #617C44 #80A359

Accessibility & contrast

On white

8.27
#42542E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#42542E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42542E
8.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42542E#FFFFFF#000000##FFFFFF
##42542E1.008.272.548.27
#FFFFFF8.271.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#574F2B
Deuteranopia (green-blind)
#554E30
Tritanopia (blue-blind)
#43514B
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #42542e;
/* rgb */ color: rgb(66, 84, 46);
/* oklch */ color: oklch(42.0% 0.063 129.5);
Tailwind
colors: {
  custom: {
    50: '#778467',
    500: '#42542e',
    950: '#000000',
  },
}
SCSS
$custom: #42542e;
$custom-light: #778467;
$custom-dark: #000000;
JSON
{
  "hex": "#42542e",
  "rgb": {
    "r": 66,
    "g": 84,
    "b": 46
  },
  "hsl": {
    "h": 88.421,
    "s": 29.231,
    "l": 25.49
  },
  "oklch": {
    "l": 0.42027,
    "c": 0.06316,
    "h": 129.5
  },
  "luminance": 0.07696
}

Semantic roles & 50–950 ramp

primary
#42542E
secondary
#6E5886
accent
#62C591
background
#F7F8F6
surface
#EDEFEB
border
#C8CAC6
text
#090A06
muted
#7B7C7A

Preview Lab

Preview with #42542E

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

Preview Lab → · Contrast checker → · Palette generator →

#42542E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva