#304E12#304E12

#304E12 is a dark, moderate yellow-green. Relative luminance 0.061; OKLCH L 38.7% C 0.093 H 132.4°. Best body text is #FFFFFF at 9.44:1 contrast (WCAG AA passes).

Color values

HEX#304E12
RGBrgb(48, 78, 18)
HSLhsl(90, 63%, 19%)
HSVhsv(90, 77%, 31%)
CMYKcmyk(38.5%, 0%, 76.9%, 69.4%)
CIE-LABlab(29.71, -22.37, 30.45)
CIE-LCHlch(29.71, 37.79, 126.31°)
OKLaboklab(38.66% -0.0629 0.0689)
OKLCHoklch(38.66% 0.093 132.4)
XYZxyz(4.0524, 6.1207, 1.5400)
Luminance0.0612 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304E12 #30124E
analogous
#4E4E12 #304E12 #124E12
triadic
#304E12 #12304E #4E1230
tetradic
#304E12 #124E4E #30124E #4E1212
square
#304E12 #124E4E #30124E #4E1212
split-complementary
#304E12 #12124E #4E124E
monochromatic
#0F1906 #111C07 #304E12 #4F801D #6DB129

Accessibility & contrast

On white

9.44
#304E12 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#304E12 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304E12
9.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304E12#FFFFFF#000000##FFFFFF
##304E121.009.442.229.44
#FFFFFF9.441.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#524709
Deuteranopia (green-blind)
#4D4517
Tritanopia (blue-blind)
#314B42
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #304e12;
/* rgb */ color: rgb(48, 78, 18);
/* oklch */ color: oklch(38.7% 0.093 132.4);
Tailwind
colors: {
  custom: {
    50: '#6b8054',
    500: '#304e12',
    950: '#000000',
  },
}
SCSS
$custom: #304e12;
$custom-light: #6b8054;
$custom-dark: #000000;
JSON
{
  "hex": "#304e12",
  "rgb": {
    "r": 48,
    "g": 78,
    "b": 18
  },
  "hsl": {
    "h": 90,
    "s": 62.5,
    "l": 18.824
  },
  "oklch": {
    "l": 0.38655,
    "c": 0.0933,
    "h": 132.4
  },
  "luminance": 0.06121
}

Semantic roles & 50–950 ramp

primary
#304E12
secondary
#5E3587
accent
#42E694
background
#F6F7F4
surface
#EBEEE8
border
#C6C9C4
text
#070A03
muted
#7A7C78

Preview Lab

Preview with #304E12

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

Preview Lab → · Contrast checker → · Palette generator →

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