#304B16#304B16

#304B16 is a dark, moderate yellow-green. Relative luminance 0.057; OKLCH L 37.8% C 0.085 H 132.2°. Best body text is #FFFFFF at 9.80:1 contrast (WCAG AA passes).

Color values

HEX#304B16
RGBrgb(48, 75, 22)
HSLhsl(91, 55%, 19%)
HSVhsv(91, 71%, 29%)
CMYKcmyk(36%, 0%, 70.7%, 70.6%)
CIE-LABlab(28.69, -20.47, 27.48)
CIE-LCHlch(28.69, 34.27, 126.69°)
OKLaboklab(37.83% -0.0574 0.0632)
OKLCHoklch(37.83% 0.085 132.2)
XYZxyz(3.8798, 5.7183, 1.6582)
Luminance0.0572 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304B16 #31164B
analogous
#4B4B16 #304B16 #164B17
triadic
#304B16 #16304B #4B1630
tetradic
#304B16 #164B4B #31164B #4B1716
square
#304B16 #164B4B #31164B #4B1716
split-complementary
#304B16 #17164B #4B164B
monochromatic
#0F1807 #121C08 #304B16 #4E7A24 #6DAA32

Accessibility & contrast

On white

9.80
#304B16 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#304B16 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304B16
9.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304B16#FFFFFF#000000##FFFFFF
##304B161.009.802.149.80
#FFFFFF9.801.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4E450F
Deuteranopia (green-blind)
#4B431A
Tritanopia (blue-blind)
#314840
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #304b16;
/* rgb */ color: rgb(48, 75, 22);
/* oklch */ color: oklch(37.8% 0.085 132.2);
Tailwind
colors: {
  custom: {
    50: '#6b7d56',
    500: '#304b16',
    950: '#000000',
  },
}
SCSS
$custom: #304b16;
$custom-light: #6b7d56;
$custom-dark: #000000;
JSON
{
  "hex": "#304b16",
  "rgb": {
    "r": 48,
    "g": 75,
    "b": 22
  },
  "hsl": {
    "h": 90.566,
    "s": 54.639,
    "l": 19.02
  },
  "oklch": {
    "l": 0.37832,
    "c": 0.08539,
    "h": 132.2
  },
  "luminance": 0.05718
}

Semantic roles & 50–950 ramp

primary
#304B16
secondary
#5F3A83
accent
#4ADE95
background
#F6F7F5
surface
#EBEEE9
border
#C6C9C5
text
#070903
muted
#7A7B78

Preview Lab

Preview with #304B16

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

Preview Lab → · Contrast checker → · Palette generator →

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