#42540E#42540E

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

Color values

HEX#42540E
RGBrgb(66, 84, 14)
HSLhsl(75, 71%, 19%)
HSVhsv(75, 83%, 33%)
CMYKcmyk(21.4%, 0%, 83.3%, 67.1%)
CIE-LABlab(32.99, -17.79, 35.68)
CIE-LCHlch(32.99, 39.87, 116.50°)
OKLaboklab(41.62% -0.0521 0.0787)
OKLCHoklch(41.62% 0.094 123.5)
XYZxyz(5.4964, 7.5306, 1.5794)
Luminance0.0753 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42540E #200E54
analogous
#54430E #42540E #1F540E
triadic
#42540E #0E4254 #540E42
tetradic
#42540E #0E5443 #200E54 #540E1F
square
#42540E #0E5443 #200E54 #540E1F
split-complementary
#42540E #0E1F54 #430E54
monochromatic
#151A04 #192005 #42540E #6B8817 #94BD1F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##42540E#FFFFFF#000000##FFFFFF
##42540E1.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)
#594E00
Deuteranopia (green-blind)
#574D15
Tritanopia (blue-blind)
#464F47
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #42540e;
/* rgb */ color: rgb(66, 84, 14);
/* oklch */ color: oklch(41.6% 0.094 123.5);
Tailwind
colors: {
  custom: {
    50: '#798453',
    500: '#42540e',
    950: '#000000',
  },
}
SCSS
$custom: #42540e;
$custom-light: #798453;
$custom-dark: #000000;
JSON
{
  "hex": "#42540e",
  "rgb": {
    "r": 66,
    "g": 84,
    "b": 14
  },
  "hsl": {
    "h": 75.429,
    "s": 71.429,
    "l": 19.216
  },
  "oklch": {
    "l": 0.41624,
    "c": 0.09434,
    "h": 123.5
  },
  "luminance": 0.07531
}

Semantic roles & 50–950 ramp

primary
#42540E
secondary
#482F8E
accent
#3AEE68
background
#F7F8F4
surface
#EEEFE8
border
#C9CAC4
text
#090A03
muted
#7B7C78

Preview Lab

Preview with #42540E

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

Preview Lab → · Contrast checker → · Palette generator →

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