#304F16#304F16

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

Color values

HEX#304F16
RGBrgb(48, 79, 22)
HSLhsl(93, 56%, 20%)
HSVhsv(93, 72%, 31%)
CMYKcmyk(39.2%, 0%, 72.2%, 69%)
CIE-LABlab(30.10, -22.52, 29.00)
CIE-LCHlch(30.10, 36.72, 127.83°)
OKLaboklab(38.98% -0.063 0.0665)
OKLCHoklch(38.98% 0.092 133.5)
XYZxyz(4.1597, 6.2781, 1.7515)
Luminance0.0628 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304F16 #35164F
analogous
#4D4F16 #304F16 #164F19
triadic
#304F16 #16304F #4F1630
tetradic
#304F16 #164D4F #35164F #4F1916
square
#304F16 #164D4F #35164F #4F1916
split-complementary
#304F16 #19164F #4F164D
monochromatic
#0F1807 #131F09 #304F16 #4D7F23 #6AAF31

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##304F16#FFFFFF#000000##FFFFFF
##304F161.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)
#52480E
Deuteranopia (green-blind)
#4E461B
Tritanopia (blue-blind)
#304C43
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #304f16;
/* rgb */ color: rgb(48, 79, 22);
/* oklch */ color: oklch(39.0% 0.092 133.5);
Tailwind
colors: {
  custom: {
    50: '#6b8056',
    500: '#304f16',
    950: '#000000',
  },
}
SCSS
$custom: #304f16;
$custom-light: #6b8056;
$custom-dark: #000000;
JSON
{
  "hex": "#304f16",
  "rgb": {
    "r": 48,
    "g": 79,
    "b": 22
  },
  "hsl": {
    "h": 92.632,
    "s": 56.436,
    "l": 19.804
  },
  "oklch": {
    "l": 0.38983,
    "c": 0.09155,
    "h": 133.5
  },
  "luminance": 0.06278
}

Semantic roles & 50–950 ramp

primary
#304F16
secondary
#643A86
accent
#48E09B
background
#F6F7F5
surface
#EBEEE9
border
#C6C9C5
text
#070A03
muted
#7A7C78

Preview Lab

Preview with #304F16

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

Preview Lab → · Contrast checker → · Palette generator →

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