#42531C#42531C

#42531C is a dark, moderate yellow-green. Relative luminance 0.074; OKLCH L 41.5% C 0.082 H 124.4°. Best body text is #FFFFFF at 8.45:1 contrast (WCAG AA passes).

Color values

HEX#42531C
RGBrgb(66, 83, 28)
HSLhsl(79, 50%, 22%)
HSVhsv(79, 66%, 33%)
CMYKcmyk(20.5%, 0%, 66.3%, 67.5%)
CIE-LABlab(32.76, -16.21, 29.27)
CIE-LCHlch(32.76, 33.46, 118.98°)
OKLaboklab(41.48% -0.0463 0.0676)
OKLCHoklch(41.48% 0.082 124.4)
XYZxyz(5.5497, 7.4286, 2.2399)
Luminance0.0743 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42531C #2D1C53
analogous
#53491C #42531C #27531C
triadic
#42531C #1C4253 #531C42
tetradic
#42531C #1C5349 #2D1C53 #531C27
square
#42531C #1C5349 #2D1C53 #531C27
split-complementary
#42531C #1C2753 #491C53
monochromatic
#121708 #1E250D #42531C #66812B #8BAF3B

Accessibility & contrast

On white

8.45
#42531C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#42531C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42531C
8.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42531C#FFFFFF#000000##FFFFFF
##42531C1.008.452.498.45
#FFFFFF8.451.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#584E16
Deuteranopia (green-blind)
#554D20
Tritanopia (blue-blind)
#454F47
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #42531c;
/* rgb */ color: rgb(66, 83, 28);
/* oklch */ color: oklch(41.5% 0.082 124.4);
Tailwind
colors: {
  custom: {
    50: '#78835b',
    500: '#42531c',
    950: '#000000',
  },
}
SCSS
$custom: #42531c;
$custom-light: #78835b;
$custom-dark: #000000;
JSON
{
  "hex": "#42531c",
  "rgb": {
    "r": 66,
    "g": 83,
    "b": 28
  },
  "hsl": {
    "h": 78.545,
    "s": 49.55,
    "l": 21.765
  },
  "oklch": {
    "l": 0.41481,
    "c": 0.0819,
    "h": 124.4
  },
  "luminance": 0.07429
}

Semantic roles & 50–950 ramp

primary
#42531C
secondary
#584289
accent
#4FD979
background
#F7F8F5
surface
#EDEFE9
border
#C8CAC5
text
#090A04
muted
#7B7C79

Preview Lab

Preview with #42531C

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

Preview Lab → · Contrast checker → · Palette generator →

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