#305116#305116

#305116 is a dark, moderate yellow-green. Relative luminance 0.066; OKLCH L 39.6% C 0.095 H 134.0°. Best body text is #FFFFFF at 9.07:1 contrast (WCAG AA passes).

Color values

HEX#305116
RGBrgb(48, 81, 22)
HSLhsl(94, 57%, 20%)
HSVhsv(94, 73%, 32%)
CMYKcmyk(40.7%, 0%, 72.8%, 68.2%)
CIE-LABlab(30.81, -23.52, 29.75)
CIE-LCHlch(30.81, 37.93, 128.33°)
OKLaboklab(39.56% -0.0657 0.068)
OKLCHoklch(39.56% 0.095 134)
XYZxyz(4.3061, 6.5710, 1.8003)
Luminance0.0657 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#305116 #371651
analogous
#4E5116 #305116 #165119
triadic
#305116 #163051 #511630
tetradic
#305116 #164E51 #371651 #511916
square
#305116 #164E51 #371651 #511916
split-complementary
#305116 #191651 #51164E
monochromatic
#0E1807 #132109 #305116 #4D8123 #69B130

Accessibility & contrast

On white

9.07
#305116 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#305116 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #305116
9.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##305116#FFFFFF#000000##FFFFFF
##3051161.009.072.319.07
#FFFFFF9.071.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#544A0E
Deuteranopia (green-blind)
#50481B
Tritanopia (blue-blind)
#304E45
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #305116;
/* rgb */ color: rgb(48, 81, 22);
/* oklch */ color: oklch(39.6% 0.095 134.0);
Tailwind
colors: {
  custom: {
    50: '#6b8257',
    500: '#305116',
    950: '#000000',
  },
}
SCSS
$custom: #305116;
$custom-light: #6b8257;
$custom-dark: #000000;
JSON
{
  "hex": "#305116",
  "rgb": {
    "r": 48,
    "g": 81,
    "b": 22
  },
  "hsl": {
    "h": 93.559,
    "s": 57.282,
    "l": 20.196
  },
  "oklch": {
    "l": 0.3956,
    "c": 0.09458,
    "h": 134
  },
  "luminance": 0.06571
}

Semantic roles & 50–950 ramp

primary
#305116
secondary
#663A88
accent
#47E19D
background
#F6F7F5
surface
#EBEEE9
border
#C6C9C5
text
#070A03
muted
#7A7C78

Preview Lab

Preview with #305116

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

Preview Lab → · Contrast checker → · Palette generator →

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