#42541F#42541F

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

Color values

HEX#42541F
RGBrgb(66, 84, 31)
HSLhsl(80, 46%, 23%)
HSVhsv(80, 63%, 33%)
CMYKcmyk(21.4%, 0%, 63.1%, 67.1%)
CIE-LABlab(33.13, -16.47, 28.14)
CIE-LCHlch(33.13, 32.60, 120.34°)
OKLaboklab(41.79% -0.0467 0.0655)
OKLCHoklch(41.79% 0.08 125.5)
XYZxyz(5.6644, 7.5978, 2.4641)
Luminance0.0760 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42541F #311F54
analogous
#544B1F #42541F #28541F
triadic
#42541F #1F4254 #541F42
tetradic
#42541F #1F544B #311F54 #541F28
square
#42541F #1F544B #311F54 #541F28
split-complementary
#42541F #1F2854 #4B1F54
monochromatic
#121608 #1F270F #42541F #65812F #88AD40

Accessibility & contrast

On white

8.33
#42541F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #42541F
8.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42541F#FFFFFF#000000##FFFFFF
##42541F1.008.332.528.33
#FFFFFF8.331.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#594F19
Deuteranopia (green-blind)
#564E23
Tritanopia (blue-blind)
#455049
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #42541f;
/* rgb */ color: rgb(66, 84, 31);
/* oklch */ color: oklch(41.8% 0.080 125.5);
Tailwind
colors: {
  custom: {
    50: '#78845d',
    500: '#42541f',
    950: '#000000',
  },
}
SCSS
$custom: #42541f;
$custom-light: #78845d;
$custom-dark: #000000;
JSON
{
  "hex": "#42541f",
  "rgb": {
    "r": 66,
    "g": 84,
    "b": 31
  },
  "hsl": {
    "h": 80.377,
    "s": 46.087,
    "l": 22.549
  },
  "oklch": {
    "l": 0.41788,
    "c": 0.08046,
    "h": 125.5
  },
  "luminance": 0.07598
}

Semantic roles & 50–950 ramp

primary
#42541F
secondary
#5D4689
accent
#52D67F
background
#F7F8F5
surface
#EDEFE9
border
#C8CAC5
text
#090A04
muted
#7B7C79

Preview Lab

Preview with #42541F

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

Preview Lab → · Contrast checker → · Palette generator →

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