#304C12#304C12

#304C12 is a dark, moderate yellow-green. Relative luminance 0.058; OKLCH L 38.1% C 0.090 H 131.8°. Best body text is #FFFFFF at 9.69:1 contrast (WCAG AA passes).

Color values

HEX#304C12
RGBrgb(48, 76, 18)
HSLhsl(89, 62%, 18%)
HSVhsv(89, 76%, 30%)
CMYKcmyk(36.8%, 0%, 76.3%, 70.2%)
CIE-LABlab(29.01, -21.36, 29.72)
CIE-LCHlch(29.01, 36.60, 125.70°)
OKLaboklab(38.08% -0.0602 0.0673)
OKLCHoklch(38.08% 0.09 131.8)
XYZxyz(3.9125, 5.8408, 1.4934)
Luminance0.0584 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304C12 #2E124C
analogous
#4C4B12 #304C12 #134C12
triadic
#304C12 #12304C #4C1230
tetradic
#304C12 #124C4B #2E124C #4C1213
square
#304C12 #124C4B #2E124C #4C1213
split-complementary
#304C12 #12134C #4B124C
monochromatic
#101906 #111B06 #304C12 #4F7D1E #6FAF29

Accessibility & contrast

On white

9.69
#304C12 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#304C12 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304C12
9.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304C12#FFFFFF#000000##FFFFFF
##304C121.009.692.179.69
#FFFFFF9.691.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#504609
Deuteranopia (green-blind)
#4C4417
Tritanopia (blue-blind)
#314940
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #304c12;
/* rgb */ color: rgb(48, 76, 18);
/* oklch */ color: oklch(38.1% 0.090 131.8);
Tailwind
colors: {
  custom: {
    50: '#6b7e54',
    500: '#304c12',
    950: '#000000',
  },
}
SCSS
$custom: #304c12;
$custom-light: #6b7e54;
$custom-dark: #000000;
JSON
{
  "hex": "#304c12",
  "rgb": {
    "r": 48,
    "g": 76,
    "b": 18
  },
  "hsl": {
    "h": 88.966,
    "s": 61.702,
    "l": 18.431
  },
  "oklch": {
    "l": 0.38078,
    "c": 0.09032,
    "h": 131.8
  },
  "luminance": 0.05841
}

Semantic roles & 50–950 ramp

primary
#304C12
secondary
#5C3585
accent
#43E591
background
#F6F7F4
surface
#EBEEE8
border
#C6C9C4
text
#070A03
muted
#7A7C78

Preview Lab

Preview with #304C12

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

Preview Lab → · Contrast checker → · Palette generator →

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