#304D17#304D17

#304D17 is a dark, moderate yellow-green. Relative luminance 0.060; OKLCH L 38.4% C 0.088 H 133.1°. Best body text is #FFFFFF at 9.55:1 contrast (WCAG AA passes).

Color values

HEX#304D17
RGBrgb(48, 77, 23)
HSLhsl(92, 54%, 20%)
HSVhsv(92, 70%, 30%)
CMYKcmyk(37.7%, 0%, 70.1%, 69.8%)
CIE-LABlab(29.41, -21.41, 27.76)
CIE-LCHlch(29.41, 35.05, 127.64°)
OKLaboklab(38.42% -0.0598 0.064)
OKLCHoklch(38.42% 0.088 133.1)
XYZxyz(4.0274, 5.9978, 1.7559)
Luminance0.0600 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304D17 #34174D
analogous
#4B4D17 #304D17 #174D19
triadic
#304D17 #17304D #4D1730
tetradic
#304D17 #174B4D #34174D #4D1917
square
#304D17 #174B4D #34174D #4D1917
split-complementary
#304D17 #19174D #4D174B
monochromatic
#0F1807 #131E09 #304D17 #4D7C25 #6BAB33

Accessibility & contrast

On white

9.55
#304D17 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#304D17 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304D17
9.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304D17#FFFFFF#000000##FFFFFF
##304D171.009.552.209.55
#FFFFFF9.551.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#504710
Deuteranopia (green-blind)
#4C441B
Tritanopia (blue-blind)
#304A42
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #304d17;
/* rgb */ color: rgb(48, 77, 23);
/* oklch */ color: oklch(38.4% 0.088 133.1);
Tailwind
colors: {
  custom: {
    50: '#6b7f57',
    500: '#304d17',
    950: '#000000',
  },
}
SCSS
$custom: #304d17;
$custom-light: #6b7f57;
$custom-dark: #000000;
JSON
{
  "hex": "#304d17",
  "rgb": {
    "r": 48,
    "g": 77,
    "b": 23
  },
  "hsl": {
    "h": 92.222,
    "s": 54,
    "l": 19.608
  },
  "oklch": {
    "l": 0.38419,
    "c": 0.0876,
    "h": 133.1
  },
  "luminance": 0.05998
}

Semantic roles & 50–950 ramp

primary
#304D17
secondary
#633C84
accent
#4ADD99
background
#F6F7F5
surface
#EBEEE9
border
#C6C9C5
text
#070A03
muted
#7A7C78

Preview Lab

Preview with #304D17

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

Preview Lab → · Contrast checker → · Palette generator →

#304D17 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva