#304F17#304F17

#304F17 is a dark, moderate yellow-green. Relative luminance 0.063; OKLCH L 39.0% C 0.091 H 133.7°. Best body text is #FFFFFF at 9.31:1 contrast (WCAG AA passes).

Color values

HEX#304F17
RGBrgb(48, 79, 23)
HSLhsl(93, 55%, 20%)
HSVhsv(93, 71%, 31%)
CMYKcmyk(39.2%, 0%, 70.9%, 69%)
CIE-LABlab(30.11, -22.42, 28.53)
CIE-LCHlch(30.11, 36.28, 128.17°)
OKLaboklab(38.99% -0.0626 0.0656)
OKLCHoklch(38.99% 0.091 133.7)
XYZxyz(4.1695, 6.2820, 1.8033)
Luminance0.0628 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304F17 #36174F
analogous
#4C4F17 #304F17 #174F1A
triadic
#304F17 #17304F #4F1730
tetradic
#304F17 #174C4F #36174F #4F1A17
square
#304F17 #174C4F #36174F #4F1A17
split-complementary
#304F17 #1A174F #4F174C
monochromatic
#0E1807 #132009 #304F17 #4D7E25 #6AAE33

Accessibility & contrast

On white

9.31
#304F17 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#304F17 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304F17
9.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304F17#FFFFFF#000000##FFFFFF
##304F171.009.312.269.31
#FFFFFF9.311.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#524910
Deuteranopia (green-blind)
#4E461C
Tritanopia (blue-blind)
#304C43
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #304f17;
/* rgb */ color: rgb(48, 79, 23);
/* oklch */ color: oklch(39.0% 0.091 133.7);
Tailwind
colors: {
  custom: {
    50: '#6b8057',
    500: '#304f17',
    950: '#000000',
  },
}
SCSS
$custom: #304f17;
$custom-light: #6b8057;
$custom-dark: #000000;
JSON
{
  "hex": "#304f17",
  "rgb": {
    "r": 48,
    "g": 79,
    "b": 23
  },
  "hsl": {
    "h": 93.214,
    "s": 54.902,
    "l": 20
  },
  "oklch": {
    "l": 0.38994,
    "c": 0.09069,
    "h": 133.7
  },
  "luminance": 0.06282
}

Semantic roles & 50–950 ramp

primary
#304F17
secondary
#653C86
accent
#4ADE9C
background
#F6F7F5
surface
#EBEEE9
border
#C6C9C5
text
#070A03
muted
#7A7C78

Preview Lab

Preview with #304F17

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

Preview Lab → · Contrast checker → · Palette generator →

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