#42520F#42520F

#42520F is a dark, moderate yellow-green. Relative luminance 0.072; OKLCH L 41.1% C 0.091 H 122.5°. Best body text is #FFFFFF at 8.59:1 contrast (WCAG AA passes).

Color values

HEX#42520F
RGBrgb(66, 82, 15)
HSLhsl(74, 69%, 19%)
HSVhsv(74, 82%, 32%)
CMYKcmyk(19.5%, 0%, 81.7%, 67.8%)
CIE-LABlab(32.32, -16.65, 34.68)
CIE-LCHlch(32.32, 38.47, 115.64°)
OKLaboklab(41.09% -0.0488 0.0768)
OKLCHoklch(41.09% 0.091 122.5)
XYZxyz(5.3504, 7.2273, 1.5650)
Luminance0.0723 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42520F #1F0F52
analogous
#52410F #42520F #21520F
triadic
#42520F #0F4252 #520F42
tetradic
#42520F #0F5241 #1F0F52 #520F21
square
#42520F #0F5241 #1F0F52 #520F21
split-complementary
#42520F #0F2152 #410F52
monochromatic
#151A05 #181E06 #42520F #6C8618 #95B922

Accessibility & contrast

On white

8.59
#42520F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#42520F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42520F
8.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42520F#FFFFFF#000000##FFFFFF
##42520F1.008.592.458.59
#FFFFFF8.591.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#574C02
Deuteranopia (green-blind)
#554C15
Tritanopia (blue-blind)
#464D45
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #42520f;
/* rgb */ color: rgb(66, 82, 15);
/* oklch */ color: oklch(41.1% 0.091 122.5);
Tailwind
colors: {
  custom: {
    50: '#798253',
    500: '#42520f',
    950: '#000000',
  },
}
SCSS
$custom: #42520f;
$custom-light: #798253;
$custom-dark: #000000;
JSON
{
  "hex": "#42520f",
  "rgb": {
    "r": 66,
    "g": 82,
    "b": 15
  },
  "hsl": {
    "h": 74.328,
    "s": 69.072,
    "l": 19.02
  },
  "oklch": {
    "l": 0.41088,
    "c": 0.09097,
    "h": 122.5
  },
  "luminance": 0.07227
}

Semantic roles & 50–950 ramp

primary
#42520F
secondary
#47318C
accent
#3CEC66
background
#F7F7F4
surface
#EEEEE8
border
#C9C9C4
text
#090A03
muted
#7B7C78

Preview Lab

Preview with #42520F

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

Preview Lab → · Contrast checker → · Palette generator →

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