#304B0C#304B0C

#304B0C is a dark, moderate yellow-green. Relative luminance 0.057; OKLCH L 37.7% C 0.093 H 130.5°. Best body text is #FFFFFF at 9.83:1 contrast (WCAG AA passes).

Color values

HEX#304B0C
RGBrgb(48, 75, 12)
HSLhsl(86, 72%, 17%)
HSVhsv(86, 84%, 29%)
CMYKcmyk(36%, 0%, 84%, 70.6%)
CIE-LABlab(28.61, -21.29, 31.85)
CIE-LCHlch(28.61, 38.31, 123.76°)
OKLaboklab(37.74% -0.0605 0.0708)
OKLCHoklch(37.74% 0.093 130.5)
XYZxyz(3.8013, 5.6869, 1.2452)
Luminance0.0569 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304B0C #270C4B
analogous
#4B470C #304B0C #114B0C
triadic
#304B0C #0C304B #4B0C30
tetradic
#304B0C #0C4B47 #270C4B #4B0C11
square
#304B0C #0C4B47 #270C4B #4B0C11
split-complementary
#304B0C #0C114B #470C4B
monochromatic
#111A04 #111A04 #304B0C #528014 #74B51D

Accessibility & contrast

On white

9.83
#304B0C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#304B0C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304B0C
9.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304B0C#FFFFFF#000000##FFFFFF
##304B0C1.009.832.149.83
#FFFFFF9.831.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4F4501
Deuteranopia (green-blind)
#4B4312
Tritanopia (blue-blind)
#31473F
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #304b0c;
/* rgb */ color: rgb(48, 75, 12);
/* oklch */ color: oklch(37.7% 0.093 130.5);
Tailwind
colors: {
  custom: {
    50: '#6b7d50',
    500: '#304b0c',
    950: '#000000',
  },
}
SCSS
$custom: #304b0c;
$custom-light: #6b7d50;
$custom-dark: #000000;
JSON
{
  "hex": "#304b0c",
  "rgb": {
    "r": 48,
    "g": 75,
    "b": 12
  },
  "hsl": {
    "h": 85.714,
    "s": 72.414,
    "l": 17.059
  },
  "oklch": {
    "l": 0.37739,
    "c": 0.09312,
    "h": 130.5
  },
  "luminance": 0.05687
}

Semantic roles & 50–950 ramp

primary
#304B0C
secondary
#532C87
accent
#39EF87
background
#F6F7F4
surface
#EBEEE7
border
#C6C9C3
text
#070902
muted
#7A7B78

Preview Lab

Preview with #304B0C

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

Preview Lab → · Contrast checker → · Palette generator →

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