#42540F#42540F

#42540F is a dark, moderate yellow-green. Relative luminance 0.075; OKLCH L 41.6% C 0.094 H 123.6°. Best body text is #FFFFFF at 8.38:1 contrast (WCAG AA passes).

Color values

HEX#42540F
RGBrgb(66, 84, 15)
HSLhsl(76, 70%, 19%)
HSVhsv(76, 82%, 33%)
CMYKcmyk(21.4%, 0%, 82.1%, 67.1%)
CIE-LABlab(32.99, -17.74, 35.32)
CIE-LCHlch(32.99, 39.52, 116.66°)
OKLaboklab(41.63% -0.0518 0.0781)
OKLCHoklch(41.63% 0.094 123.6)
XYZxyz(5.5034, 7.5333, 1.6160)
Luminance0.0753 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42540F #210F54
analogous
#54440F #42540F #20540F
triadic
#42540F #0F4254 #540F42
tetradic
#42540F #0F5444 #210F54 #540F20
square
#42540F #0F5444 #210F54 #540F20
split-complementary
#42540F #0F2054 #440F54
monochromatic
#141A05 #192006 #42540F #6B8818 #94BC22

Accessibility & contrast

On white

8.38
#42540F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#42540F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42540F
8.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42540F#FFFFFF#000000##FFFFFF
##42540F1.008.382.518.38
#FFFFFF8.381.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#594E02
Deuteranopia (green-blind)
#574D16
Tritanopia (blue-blind)
#464F47
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #42540f;
/* rgb */ color: rgb(66, 84, 15);
/* oklch */ color: oklch(41.6% 0.094 123.6);
Tailwind
colors: {
  custom: {
    50: '#798454',
    500: '#42540f',
    950: '#000000',
  },
}
SCSS
$custom: #42540f;
$custom-light: #798454;
$custom-dark: #000000;
JSON
{
  "hex": "#42540f",
  "rgb": {
    "r": 66,
    "g": 84,
    "b": 15
  },
  "hsl": {
    "h": 75.652,
    "s": 69.697,
    "l": 19.412
  },
  "oklch": {
    "l": 0.41631,
    "c": 0.09373,
    "h": 123.6
  },
  "luminance": 0.07533
}

Semantic roles & 50–950 ramp

primary
#42540F
secondary
#49318E
accent
#3BED6A
background
#F7F8F5
surface
#EEEFE8
border
#C9CAC4
text
#090A03
muted
#7B7C78

Preview Lab

Preview with #42540F

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

Preview Lab → · Contrast checker → · Palette generator →

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