#42500C#42500C

#42500C is a dark, moderate yellow-green. Relative luminance 0.069; OKLCH L 40.5% C 0.090 H 121.1°. Best body text is #FFFFFF at 8.81:1 contrast (WCAG AA passes).

Color values

HEX#42500C
RGBrgb(66, 80, 12)
HSLhsl(72, 74%, 18%)
HSVhsv(72, 85%, 31%)
CMYKcmyk(17.5%, 0%, 85%, 68.6%)
CIE-LABlab(31.63, -15.70, 35.14)
CIE-LCHlch(31.63, 38.49, 114.08°)
OKLaboklab(40.53% -0.0465 0.0772)
OKLCHoklch(40.53% 0.09 121.1)
XYZxyz(5.1819, 6.9221, 1.4109)
Luminance0.0692 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42500C #1A0C50
analogous
#503C0C #42500C #20500C
triadic
#42500C #0C4250 #500C42
tetradic
#42500C #0C503C #1A0C50 #500C20
square
#42500C #0C503C #1A0C50 #500C20
split-complementary
#42500C #0C2050 #3C0C50
monochromatic
#161B04 #161B04 #42500C #6E8514 #9ABA1C

Accessibility & contrast

On white

8.81
#42500C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#42500C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42500C
8.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42500C#FFFFFF#000000##FFFFFF
##42500C1.008.812.388.81
#FFFFFF8.811.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#564B00
Deuteranopia (green-blind)
#544A13
Tritanopia (blue-blind)
#464B43
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #42500c;
/* rgb */ color: rgb(66, 80, 12);
/* oklch */ color: oklch(40.5% 0.090 121.1);
Tailwind
colors: {
  custom: {
    50: '#798152',
    500: '#42500c',
    950: '#000000',
  },
}
SCSS
$custom: #42500c;
$custom-light: #798152;
$custom-dark: #000000;
JSON
{
  "hex": "#42500c",
  "rgb": {
    "r": 66,
    "g": 80,
    "b": 12
  },
  "hsl": {
    "h": 72.353,
    "s": 73.913,
    "l": 18.039
  },
  "oklch": {
    "l": 0.40525,
    "c": 0.0901,
    "h": 121.1
  },
  "luminance": 0.06922
}

Semantic roles & 50–950 ramp

primary
#42500C
secondary
#402C8B
accent
#37F15D
background
#F7F7F4
surface
#EEEEE7
border
#C9C9C3
text
#090A02
muted
#7B7C78

Preview Lab

Preview with #42500C

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

Preview Lab → · Contrast checker → · Palette generator →

#42500C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva