#304813#304813

#304813 is a dark, moderate yellow-green. Relative luminance 0.053; OKLCH L 36.9% C 0.083 H 130.5°. Best body text is #FFFFFF at 10.18:1 contrast (WCAG AA passes).

Color values

HEX#304813
RGBrgb(48, 72, 19)
HSLhsl(87, 58%, 18%)
HSVhsv(87, 74%, 28%)
CMYKcmyk(33.3%, 0%, 73.6%, 71.8%)
CIE-LABlab(27.60, -19.18, 27.78)
CIE-LCHlch(27.60, 33.76, 124.62°)
OKLaboklab(36.94% -0.0541 0.0634)
OKLCHoklch(36.94% 0.083 130.5)
XYZxyz(3.6538, 5.3100, 1.4484)
Luminance0.0531 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304813 #2B1348
analogous
#484513 #304813 #154813
triadic
#304813 #133048 #481330
tetradic
#304813 #134845 #2B1348 #481315
square
#304813 #134845 #2B1348 #481315
split-complementary
#304813 #131548 #451348
monochromatic
#101806 #101806 #304813 #507820 #71A92D

Accessibility & contrast

On white

10.18
#304813 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#304813 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304813
10.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304813#FFFFFF#000000##FFFFFF
##3048131.0010.182.0610.18
#FFFFFF10.181.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4C420C
Deuteranopia (green-blind)
#484117
Tritanopia (blue-blind)
#31453D
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #304813;
/* rgb */ color: rgb(48, 72, 19);
/* oklch */ color: oklch(36.9% 0.083 130.5);
Tailwind
colors: {
  custom: {
    50: '#6b7b54',
    500: '#304813',
    950: '#000000',
  },
}
SCSS
$custom: #304813;
$custom-light: #6b7b54;
$custom-dark: #000000;
JSON
{
  "hex": "#304813",
  "rgb": {
    "r": 48,
    "g": 72,
    "b": 19
  },
  "hsl": {
    "h": 87.17,
    "s": 58.242,
    "l": 17.843
  },
  "oklch": {
    "l": 0.36936,
    "c": 0.0834,
    "h": 130.5
  },
  "luminance": 0.0531
}

Semantic roles & 50–950 ramp

primary
#304813
secondary
#583681
accent
#46E18D
background
#F6F7F4
surface
#EBEDE7
border
#C6C8C3
text
#070903
muted
#7A7B78

Preview Lab

Preview with #304813

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

Preview Lab → · Contrast checker → · Palette generator →

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