#30420C#30420C

#30420C is a dark, moderate yellow-green. Relative luminance 0.046; OKLCH L 35.1% C 0.080 H 126.5°. Best body text is #FFFFFF at 10.99:1 contrast (WCAG AA passes).

Color values

HEX#30420C
RGBrgb(48, 66, 12)
HSLhsl(80, 69%, 15%)
HSVhsv(80, 82%, 26%)
CMYKcmyk(27.3%, 0%, 81.8%, 74.1%)
CIE-LABlab(25.42, -16.51, 28.76)
CIE-LCHlch(25.42, 33.16, 119.85°)
OKLaboklab(35.14% -0.0475 0.0643)
OKLCHoklch(35.14% 0.08 126.5)
XYZxyz(3.2335, 4.5513, 1.0559)
Luminance0.0455 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#30420C #1E0C42
analogous
#42390C #30420C #15420C
triadic
#30420C #0C3042 #420C30
tetradic
#30420C #0C4239 #1E0C42 #420C15
square
#30420C #0C4239 #1E0C42 #420C15
split-complementary
#30420C #0C1542 #390C42
monochromatic
#131A05 #131A05 #30420C #567615 #7BAA1F

Accessibility & contrast

On white

10.99
#30420C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #30420C
10.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##30420C#FFFFFF#000000##FFFFFF
##30420C1.0010.991.9110.99
#FFFFFF10.991.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.991.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #30420c;
/* rgb */ color: rgb(48, 66, 12);
/* oklch */ color: oklch(35.1% 0.080 126.5);
Tailwind
colors: {
  custom: {
    50: '#6a764f',
    500: '#30420c',
    950: '#000000',
  },
}
SCSS
$custom: #30420c;
$custom-light: #6a764f;
$custom-dark: #000000;
JSON
{
  "hex": "#30420c",
  "rgb": {
    "r": 48,
    "g": 66,
    "b": 12
  },
  "hsl": {
    "h": 80,
    "s": 69.231,
    "l": 15.294
  },
  "oklch": {
    "l": 0.35143,
    "c": 0.07992,
    "h": 126.5
  },
  "luminance": 0.04551
}

Semantic roles & 50–950 ramp

primary
#30420C
secondary
#472C7E
accent
#3CEC77
background
#F6F7F4
surface
#EBEDE7
border
#C6C8C3
text
#070802
muted
#7A7B78

Preview Lab

Preview with #30420C

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

Preview Lab → · Contrast checker → · Palette generator →

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