#304F12#304F12

#304F12 is a dark, moderate yellow-green. Relative luminance 0.063; OKLCH L 38.9% C 0.095 H 132.7°. Best body text is #FFFFFF at 9.32:1 contrast (WCAG AA passes).

Color values

HEX#304F12
RGBrgb(48, 79, 18)
HSLhsl(90, 63%, 19%)
HSVhsv(90, 77%, 31%)
CMYKcmyk(39.2%, 0%, 77.2%, 69%)
CIE-LABlab(30.07, -22.87, 30.81)
CIE-LCHlch(30.07, 38.38, 126.59°)
OKLaboklab(38.94% -0.0643 0.0696)
OKLCHoklch(38.94% 0.095 132.7)
XYZxyz(4.1240, 6.2638, 1.5639)
Luminance0.0626 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304F12 #31124F
analogous
#4F4F12 #304F12 #124F13
triadic
#304F12 #12304F #4F1230
tetradic
#304F12 #124F4F #31124F #4F1312
square
#304F12 #124F4F #31124F #4F1312
split-complementary
#304F12 #13124F #4F124F
monochromatic
#0F1906 #121D07 #304F12 #4E811D #6DB329

Accessibility & contrast

On white

9.32
#304F12 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#304F12 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304F12
9.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304F12#FFFFFF#000000##FFFFFF
##304F121.009.322.259.32
#FFFFFF9.321.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.321.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #304f12;
/* rgb */ color: rgb(48, 79, 18);
/* oklch */ color: oklch(38.9% 0.095 132.7);
Tailwind
colors: {
  custom: {
    50: '#6b8054',
    500: '#304f12',
    950: '#000000',
  },
}
SCSS
$custom: #304f12;
$custom-light: #6b8054;
$custom-dark: #000000;
JSON
{
  "hex": "#304f12",
  "rgb": {
    "r": 48,
    "g": 79,
    "b": 18
  },
  "hsl": {
    "h": 90.492,
    "s": 62.887,
    "l": 19.02
  },
  "oklch": {
    "l": 0.38944,
    "c": 0.09478,
    "h": 132.7
  },
  "luminance": 0.06264
}

Semantic roles & 50–950 ramp

primary
#304F12
secondary
#5F3588
accent
#42E695
background
#F6F7F5
surface
#EBEEE8
border
#C6C9C4
text
#070A03
muted
#7A7C78

Preview Lab

Preview with #304F12

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

Preview Lab → · Contrast checker → · Palette generator →

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