#305117#305117

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

Color values

HEX#305117
RGBrgb(48, 81, 23)
HSLhsl(94, 56%, 20%)
HSVhsv(94, 72%, 32%)
CMYKcmyk(40.7%, 0%, 71.6%, 68.2%)
CIE-LABlab(30.82, -23.42, 29.29)
CIE-LCHlch(30.82, 37.50, 128.65°)
OKLaboklab(39.57% -0.0654 0.0672)
OKLCHoklch(39.57% 0.094 134.2)
XYZxyz(4.3159, 6.5749, 1.8521)
Luminance0.0658 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#305117 #381751
analogous
#4D5117 #305117 #17511B
triadic
#305117 #173051 #511730
tetradic
#305117 #174D51 #381751 #511B17
square
#305117 #174D51 #381751 #511B17
split-complementary
#305117 #1B1751 #51174D
monochromatic
#0E1807 #142109 #305117 #4C8125 #68B032

Accessibility & contrast

On white

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

On black

2.32
#305117 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##305117#FFFFFF#000000##FFFFFF
##3051171.009.072.329.07
#FFFFFF9.071.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.071.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #305117;
/* rgb */ color: rgb(48, 81, 23);
/* oklch */ color: oklch(39.6% 0.094 134.2);
Tailwind
colors: {
  custom: {
    50: '#6b8257',
    500: '#305117',
    950: '#000000',
  },
}
SCSS
$custom: #305117;
$custom-light: #6b8257;
$custom-dark: #000000;
JSON
{
  "hex": "#305117",
  "rgb": {
    "r": 48,
    "g": 81,
    "b": 23
  },
  "hsl": {
    "h": 94.138,
    "s": 55.769,
    "l": 20.392
  },
  "oklch": {
    "l": 0.3957,
    "c": 0.09374,
    "h": 134.2
  },
  "luminance": 0.06575
}

Semantic roles & 50–950 ramp

primary
#305117
secondary
#673C88
accent
#49DF9E
background
#F6F7F5
surface
#EBEEE9
border
#C6C9C5
text
#070A03
muted
#7A7C78

Preview Lab

Preview with #305117

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

Preview Lab → · Contrast checker → · Palette generator →

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