#305C17#305C17

#305C17 is a dark, moderate yellow-green. Relative luminance 0.083; OKLCH L 42.7% C 0.110 H 136.4°. Best body text is #FFFFFF at 7.87:1 contrast (WCAG AA passes).

Color values

HEX#305C17
RGBrgb(48, 92, 23)
HSLhsl(98, 60%, 23%)
HSVhsv(98, 75%, 36%)
CMYKcmyk(47.8%, 0%, 75%, 63.9%)
CIE-LABlab(34.69, -28.67, 33.36)
CIE-LCHlch(34.69, 43.99, 130.67°)
OKLaboklab(42.74% -0.0796 0.0758)
OKLCHoklch(42.74% 0.11 136.4)
XYZxyz(5.2006, 8.3442, 2.1470)
Luminance0.0834 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#305C17 #43175C
analogous
#525C17 #305C17 #175C21
triadic
#305C17 #17305C #5C1730
tetradic
#305C17 #17525C #43175C #5C2117
square
#305C17 #17525C #43175C #5C2117
split-complementary
#305C17 #21175C #5C1752
monochromatic
#0D1806 #162B0B #305C17 #4A8D23 #63BE2F

Accessibility & contrast

On white

7.87
#305C17 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#305C17 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #305C17
7.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##305C17#FFFFFF#000000##FFFFFF
##305C171.007.872.677.87
#FFFFFF7.871.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5F540C
Deuteranopia (green-blind)
#59501D
Tritanopia (blue-blind)
#2E584E
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #305c17;
/* rgb */ color: rgb(48, 92, 23);
/* oklch */ color: oklch(42.7% 0.110 136.4);
Tailwind
colors: {
  custom: {
    50: '#6d8a59',
    500: '#305c17',
    950: '#000000',
  },
}
SCSS
$custom: #305c17;
$custom-light: #6d8a59;
$custom-dark: #000000;
JSON
{
  "hex": "#305c17",
  "rgb": {
    "r": 48,
    "g": 92,
    "b": 23
  },
  "hsl": {
    "h": 98.261,
    "s": 60,
    "l": 22.549
  },
  "oklch": {
    "l": 0.42738,
    "c": 0.1099,
    "h": 136.4
  },
  "luminance": 0.08345
}

Semantic roles & 50–950 ramp

primary
#305C17
secondary
#733C93
accent
#45E3AA
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#070C04
muted
#7A7D79

Preview Lab

Preview with #305C17

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

Preview Lab → · Contrast checker → · Palette generator →

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