#304F18#304F18

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

Color values

HEX#304F18
RGBrgb(48, 79, 24)
HSLhsl(94, 53%, 20%)
HSVhsv(94, 70%, 31%)
CMYKcmyk(39.2%, 0%, 69.6%, 69%)
CIE-LABlab(30.12, -22.32, 28.04)
CIE-LCHlch(30.12, 35.84, 128.52°)
OKLaboklab(39.01% -0.0623 0.0647)
OKLCHoklch(39.01% 0.09 133.9)
XYZxyz(4.1797, 6.2861, 1.8571)
Luminance0.0629 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304F18 #37184F
analogous
#4B4F18 #304F18 #184F1B
triadic
#304F18 #18304F #4F1830
tetradic
#304F18 #184B4F #37184F #4F1B18
square
#304F18 #184B4F #37184F #4F1B18
split-complementary
#304F18 #1B184F #4F184B
monochromatic
#0E1707 #13200A #304F18 #4D7E26 #69AD35

Accessibility & contrast

On white

9.30
#304F18 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #304F18
9.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304F18#FFFFFF#000000##FFFFFF
##304F181.009.302.269.30
#FFFFFF9.301.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.301.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #304f18;
/* rgb */ color: rgb(48, 79, 24);
/* oklch */ color: oklch(39.0% 0.090 133.9);
Tailwind
colors: {
  custom: {
    50: '#6b8058',
    500: '#304f18',
    950: '#000000',
  },
}
SCSS
$custom: #304f18;
$custom-light: #6b8058;
$custom-dark: #000000;
JSON
{
  "hex": "#304f18",
  "rgb": {
    "r": 48,
    "g": 79,
    "b": 24
  },
  "hsl": {
    "h": 93.818,
    "s": 53.398,
    "l": 20.196
  },
  "oklch": {
    "l": 0.39006,
    "c": 0.08979,
    "h": 133.9
  },
  "luminance": 0.06286
}

Semantic roles & 50–950 ramp

primary
#304F18
secondary
#663D86
accent
#4BDD9D
background
#F6F7F5
surface
#EBEEE9
border
#C6C9C5
text
#070A03
muted
#7A7C78

Preview Lab

Preview with #304F18

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

Preview Lab → · Contrast checker → · Palette generator →

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