#304D0C#304D0C

#304D0C is a dark, moderate yellow-green. Relative luminance 0.060; OKLCH L 38.3% C 0.096 H 131.2°. Best body text is #FFFFFF at 9.58:1 contrast (WCAG AA passes).

Color values

HEX#304D0C
RGBrgb(48, 77, 12)
HSLhsl(87, 73%, 17%)
HSVhsv(87, 84%, 30%)
CMYKcmyk(37.7%, 0%, 84.4%, 69.8%)
CIE-LABlab(29.32, -22.30, 32.53)
CIE-LCHlch(29.32, 39.44, 124.44°)
OKLaboklab(38.32% -0.0633 0.0722)
OKLCHoklch(38.32% 0.096 131.2)
XYZxyz(3.9391, 5.9625, 1.2911)
Luminance0.0596 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304D0C #290C4D
analogous
#4D490C #304D0C #104D0C
triadic
#304D0C #0C304D #4D0C30
tetradic
#304D0C #0C4D49 #290C4D #4D0C10
square
#304D0C #0C4D49 #290C4D #4D0C10
split-complementary
#304D0C #0C104D #490C4D
monochromatic
#111A04 #111A04 #304D0C #518214 #72B71D

Accessibility & contrast

On white

9.58
#304D0C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#304D0C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304D0C
9.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304D0C#FFFFFF#000000##FFFFFF
##304D0C1.009.582.199.58
#FFFFFF9.581.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#514601
Deuteranopia (green-blind)
#4D4413
Tritanopia (blue-blind)
#314941
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #304d0c;
/* rgb */ color: rgb(48, 77, 12);
/* oklch */ color: oklch(38.3% 0.096 131.2);
Tailwind
colors: {
  custom: {
    50: '#6b7f51',
    500: '#304d0c',
    950: '#000000',
  },
}
SCSS
$custom: #304d0c;
$custom-light: #6b7f51;
$custom-dark: #000000;
JSON
{
  "hex": "#304d0c",
  "rgb": {
    "r": 48,
    "g": 77,
    "b": 12
  },
  "hsl": {
    "h": 86.769,
    "s": 73.034,
    "l": 17.451
  },
  "oklch": {
    "l": 0.38317,
    "c": 0.09598,
    "h": 131.2
  },
  "luminance": 0.05963
}

Semantic roles & 50–950 ramp

primary
#304D0C
secondary
#552C89
accent
#38F08A
background
#F6F7F4
surface
#EBEEE7
border
#C6C9C3
text
#070A02
muted
#7A7C78

Preview Lab

Preview with #304D0C

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

Preview Lab → · Contrast checker → · Palette generator →

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