#304412#304412

#304412 is a dark, moderate yellow-green. Relative luminance 0.048; OKLCH L 35.8% C 0.078 H 128.5°. Best body text is #FFFFFF at 10.71:1 contrast (WCAG AA passes).

Color values

HEX#304412
RGBrgb(48, 68, 18)
HSLhsl(84, 58%, 17%)
HSVhsv(84, 74%, 27%)
CMYKcmyk(29.4%, 0%, 73.5%, 73.3%)
CIE-LABlab(26.18, -17.12, 26.76)
CIE-LCHlch(26.18, 31.77, 122.61°)
OKLaboklab(35.78% -0.0486 0.0611)
OKLCHoklch(35.78% 0.078 128.5)
XYZxyz(3.3952, 4.8062, 1.3210)
Luminance0.0481 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304412 #261244
analogous
#443F12 #304412 #174412
triadic
#304412 #123044 #441230
tetradic
#304412 #12443F #261244 #441217
square
#304412 #12443F #261244 #441217
split-complementary
#304412 #121744 #3F1244
monochromatic
#111806 #111806 #304412 #52741F #74A52C

Accessibility & contrast

On white

10.71
#304412 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#304412 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304412
10.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304412#FFFFFF#000000##FFFFFF
##3044121.0010.711.9610.71
#FFFFFF10.711.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#483F0B
Deuteranopia (green-blind)
#453E16
Tritanopia (blue-blind)
#32413A
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #304412;
/* rgb */ color: rgb(48, 68, 18);
/* oklch */ color: oklch(35.8% 0.078 128.5);
Tailwind
colors: {
  custom: {
    50: '#6a7853',
    500: '#304412',
    950: '#000000',
  },
}
SCSS
$custom: #304412;
$custom-light: #6a7853;
$custom-dark: #000000;
JSON
{
  "hex": "#304412",
  "rgb": {
    "r": 48,
    "g": 68,
    "b": 18
  },
  "hsl": {
    "h": 84,
    "s": 58.14,
    "l": 16.863
  },
  "oklch": {
    "l": 0.35775,
    "c": 0.07808,
    "h": 128.5
  },
  "luminance": 0.04806
}

Semantic roles & 50–950 ramp

primary
#304412
secondary
#52357D
accent
#46E184
background
#F6F7F4
surface
#EBEDE7
border
#C6C8C3
text
#070802
muted
#7A7B78

Preview Lab

Preview with #304412

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

Preview Lab → · Contrast checker → · Palette generator →

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