#305E17#305E17

#305E17 is a dark, moderate yellow-green. Relative luminance 0.087; OKLCH L 43.3% C 0.113 H 136.7°. Best body text is #FFFFFF at 7.67:1 contrast (WCAG AA passes).

Color values

HEX#305E17
RGBrgb(48, 94, 23)
HSLhsl(99, 61%, 23%)
HSVhsv(99, 76%, 37%)
CMYKcmyk(48.9%, 0%, 75.5%, 63.1%)
CIE-LABlab(35.39, -29.58, 34.09)
CIE-LCHlch(35.39, 45.13, 130.95°)
OKLaboklab(43.31% -0.0821 0.0773)
OKLCHoklch(43.31% 0.113 136.7)
XYZxyz(5.3761, 8.6953, 2.2055)
Luminance0.0870 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#305E17 #45175E
analogous
#535E17 #305E17 #175E21
triadic
#305E17 #17305E #5E1730
tetradic
#305E17 #17535E #45175E #5E2117
square
#305E17 #17535E #45175E #5E2117
split-complementary
#305E17 #21175E #5E1753
monochromatic
#0D1906 #172D0B #305E17 #498F23 #62C02F

Accessibility & contrast

On white

7.67
#305E17 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#305E17 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #305E17
7.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##305E17#FFFFFF#000000##FFFFFF
##305E171.007.672.747.67
#FFFFFF7.671.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#61560C
Deuteranopia (green-blind)
#5B521E
Tritanopia (blue-blind)
#2E5A50
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #305e17;
/* rgb */ color: rgb(48, 94, 23);
/* oklch */ color: oklch(43.3% 0.113 136.7);
Tailwind
colors: {
  custom: {
    50: '#6d8c59',
    500: '#305e17',
    950: '#000000',
  },
}
SCSS
$custom: #305e17;
$custom-light: #6d8c59;
$custom-dark: #000000;
JSON
{
  "hex": "#305e17",
  "rgb": {
    "r": 48,
    "g": 94,
    "b": 23
  },
  "hsl": {
    "h": 98.873,
    "s": 60.684,
    "l": 22.941
  },
  "oklch": {
    "l": 0.43313,
    "c": 0.11273,
    "h": 136.7
  },
  "luminance": 0.08696
}

Semantic roles & 50–950 ramp

primary
#305E17
secondary
#763C95
accent
#44E4AC
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#070C04
muted
#7A7D79

Preview Lab

Preview with #305E17

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

Preview Lab → · Contrast checker → · Palette generator →

#305E17 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva