#304520#304520

#304520 is a dark, moderate yellow-green. Relative luminance 0.050; OKLCH L 36.3% C 0.065 H 133.0°. Best body text is #FFFFFF at 10.51:1 contrast (WCAG AA passes).

Color values

HEX#304520
RGBrgb(48, 69, 32)
HSLhsl(94, 37%, 20%)
HSVhsv(94, 54%, 27%)
CMYKcmyk(30.4%, 0%, 53.6%, 72.9%)
CIE-LABlab(26.70, -16.03, 19.66)
CIE-LCHlch(26.70, 25.37, 129.19°)
OKLaboklab(36.26% -0.0442 0.0474)
OKLCHoklch(36.26% 0.065 133)
XYZxyz(3.6077, 4.9888, 2.1391)
Luminance0.0499 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304520 #352045
analogous
#434520 #304520 #204522
triadic
#304520 #203045 #452030
tetradic
#304520 #204345 #352045 #452220
square
#304520 #204345 #352045 #452220
split-complementary
#304520 #222045 #452043
monochromatic
#0F150A #131B0D #304520 #4D6F33 #6A9947

Accessibility & contrast

On white

10.51
#304520 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#304520 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304520
10.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304520#FFFFFF#000000##FFFFFF
##3045201.0010.512.0010.51
#FFFFFF10.511.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#48401D
Deuteranopia (green-blind)
#453F22
Tritanopia (blue-blind)
#30423C
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #304520;
/* rgb */ color: rgb(48, 69, 32);
/* oklch */ color: oklch(36.3% 0.065 133.0);
Tailwind
colors: {
  custom: {
    50: '#69785c',
    500: '#304520',
    950: '#000000',
  },
}
SCSS
$custom: #304520;
$custom-light: #69785c;
$custom-dark: #000000;
JSON
{
  "hex": "#304520",
  "rgb": {
    "r": 48,
    "g": 69,
    "b": 32
  },
  "hsl": {
    "h": 94.054,
    "s": 36.634,
    "l": 19.804
  },
  "oklch": {
    "l": 0.36259,
    "c": 0.06483,
    "h": 133
  },
  "luminance": 0.04989
}

Semantic roles & 50–950 ramp

primary
#304520
secondary
#644879
accent
#5BCD9C
background
#F6F7F5
surface
#EBEDE9
border
#C6C8C5
text
#060904
muted
#7A7B79

Preview Lab

Preview with #304520

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

Preview Lab → · Contrast checker → · Palette generator →

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