#30420F#30420F

#30420F is a dark, moderate yellow-green. Relative luminance 0.046; OKLCH L 35.2% C 0.078 H 126.9°. Best body text is #FFFFFF at 10.98:1 contrast (WCAG AA passes).

Color values

HEX#30420F
RGBrgb(48, 66, 15)
HSLhsl(81, 63%, 16%)
HSVhsv(81, 77%, 26%)
CMYKcmyk(27.3%, 0%, 77.3%, 74.1%)
CIE-LABlab(25.44, -16.28, 27.43)
CIE-LCHlch(25.44, 31.90, 120.68°)
OKLaboklab(35.17% -0.0466 0.062)
OKLCHoklch(35.17% 0.078 126.9)
XYZxyz(3.2534, 4.5592, 1.1605)
Luminance0.0456 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30420F #210F42
analogous
#423A0F #30420F #16420F
triadic
#30420F #0F3042 #420F30
tetradic
#30420F #0F423A #210F42 #420F16
square
#30420F #0F423A #210F42 #420F16
split-complementary
#30420F #0F1642 #3A0F42
monochromatic
#121906 #121906 #30420F #54741A #79A626

Accessibility & contrast

On white

10.98
#30420F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#30420F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #30420F
10.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30420F#FFFFFF#000000##FFFFFF
##30420F1.0010.981.9110.98
#FFFFFF10.981.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#463D08
Deuteranopia (green-blind)
#433C13
Tritanopia (blue-blind)
#323F38
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #30420f;
/* rgb */ color: rgb(48, 66, 15);
/* oklch */ color: oklch(35.2% 0.078 126.9);
Tailwind
colors: {
  custom: {
    50: '#6a7651',
    500: '#30420f',
    950: '#000000',
  },
}
SCSS
$custom: #30420f;
$custom-light: #6a7651;
$custom-dark: #000000;
JSON
{
  "hex": "#30420f",
  "rgb": {
    "r": 48,
    "g": 66,
    "b": 15
  },
  "hsl": {
    "h": 81.176,
    "s": 62.963,
    "l": 15.882
  },
  "oklch": {
    "l": 0.35171,
    "c": 0.07758,
    "h": 126.9
  },
  "luminance": 0.04559
}

Semantic roles & 50–950 ramp

primary
#30420F
secondary
#4B307C
accent
#42E67C
background
#F6F7F4
surface
#EBEDE7
border
#C6C8C3
text
#070802
muted
#7A7B78

Preview Lab

Preview with #30420F

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

Preview Lab → · Contrast checker → · Palette generator →

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