#42510F#42510F

#42510F is a dark, moderate yellow-green. Relative luminance 0.071; OKLCH L 40.8% C 0.090 H 121.9°. Best body text is #FFFFFF at 8.69:1 contrast (WCAG AA passes).

Color values

HEX#42510F
RGBrgb(66, 81, 15)
HSLhsl(74, 69%, 19%)
HSVhsv(74, 81%, 32%)
CMYKcmyk(18.5%, 0%, 81.5%, 68.2%)
CIE-LABlab(31.98, -16.10, 34.36)
CIE-LCHlch(31.98, 37.95, 115.10°)
OKLaboklab(40.82% -0.0473 0.0761)
OKLCHoklch(40.82% 0.09 121.9)
XYZxyz(5.2755, 7.0776, 1.5400)
Luminance0.0708 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42510F #1E0F51
analogous
#513F0F #42510F #21510F
triadic
#42510F #0F4251 #510F42
tetradic
#42510F #0F513F #1E0F51 #510F21
square
#42510F #0F513F #1E0F51 #510F21
split-complementary
#42510F #0F2151 #3F0F51
monochromatic
#151A05 #181D05 #42510F #6C8519 #96B822

Accessibility & contrast

On white

8.69
#42510F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#42510F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42510F
8.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42510F#FFFFFF#000000##FFFFFF
##42510F1.008.692.428.69
#FFFFFF8.691.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#564C03
Deuteranopia (green-blind)
#544B15
Tritanopia (blue-blind)
#464C44
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #42510f;
/* rgb */ color: rgb(66, 81, 15);
/* oklch */ color: oklch(40.8% 0.090 121.9);
Tailwind
colors: {
  custom: {
    50: '#798153',
    500: '#42510f',
    950: '#000000',
  },
}
SCSS
$custom: #42510f;
$custom-light: #798153;
$custom-dark: #000000;
JSON
{
  "hex": "#42510f",
  "rgb": {
    "r": 66,
    "g": 81,
    "b": 15
  },
  "hsl": {
    "h": 73.636,
    "s": 68.75,
    "l": 18.824
  },
  "oklch": {
    "l": 0.40816,
    "c": 0.0896,
    "h": 121.9
  },
  "luminance": 0.07078
}

Semantic roles & 50–950 ramp

primary
#42510F
secondary
#45318B
accent
#3CEC64
background
#F7F7F4
surface
#EEEEE7
border
#C9C9C3
text
#090A03
muted
#7B7C78

Preview Lab

Preview with #42510F

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

Preview Lab → · Contrast checker → · Palette generator →

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