#304512#304512

#304512 is a dark, moderate yellow-green. Relative luminance 0.049; OKLCH L 36.1% C 0.080 H 129.0°. Best body text is #FFFFFF at 10.58:1 contrast (WCAG AA passes).

Color values

HEX#304512
RGBrgb(48, 69, 18)
HSLhsl(85, 59%, 17%)
HSVhsv(85, 74%, 27%)
CMYKcmyk(30.4%, 0%, 73.9%, 72.9%)
CIE-LABlab(26.53, -17.67, 27.14)
CIE-LCHlch(26.53, 32.38, 123.07°)
OKLaboklab(36.06% -0.0501 0.0619)
OKLCHoklch(36.06% 0.08 129)
XYZxyz(3.4562, 4.9282, 1.3413)
Luminance0.0493 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304512 #271245
analogous
#454112 #304512 #174512
triadic
#304512 #123045 #451230
tetradic
#304512 #124541 #271245 #451217
square
#304512 #124541 #271245 #451217
split-complementary
#304512 #121745 #411245
monochromatic
#111806 #111806 #304512 #52761F #74A62B

Accessibility & contrast

On white

10.58
#304512 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#304512 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304512
10.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304512#FFFFFF#000000##FFFFFF
##3045121.0010.581.9910.58
#FFFFFF10.581.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#49400B
Deuteranopia (green-blind)
#463E16
Tritanopia (blue-blind)
#32423B
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #304512;
/* rgb */ color: rgb(48, 69, 18);
/* oklch */ color: oklch(36.1% 0.080 129.0);
Tailwind
colors: {
  custom: {
    50: '#6a7853',
    500: '#304512',
    950: '#000000',
  },
}
SCSS
$custom: #304512;
$custom-light: #6a7853;
$custom-dark: #000000;
JSON
{
  "hex": "#304512",
  "rgb": {
    "r": 48,
    "g": 69,
    "b": 18
  },
  "hsl": {
    "h": 84.706,
    "s": 58.621,
    "l": 17.059
  },
  "oklch": {
    "l": 0.36063,
    "c": 0.07963,
    "h": 129
  },
  "luminance": 0.04928
}

Semantic roles & 50–950 ramp

primary
#304512
secondary
#53357E
accent
#46E286
background
#F6F7F4
surface
#EBEDE7
border
#C6C8C3
text
#070902
muted
#7A7B78

Preview Lab

Preview with #304512

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

Preview Lab → · Contrast checker → · Palette generator →

#304512 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva