#305817#305817

#305817 is a dark, moderate yellow-green. Relative luminance 0.077; OKLCH L 41.6% C 0.104 H 135.7°. Best body text is #FFFFFF at 8.29:1 contrast (WCAG AA passes).

Color values

HEX#305817
RGBrgb(48, 88, 23)
HSLhsl(97, 59%, 22%)
HSVhsv(97, 74%, 35%)
CMYKcmyk(45.5%, 0%, 73.9%, 65.5%)
CIE-LABlab(33.28, -26.81, 31.90)
CIE-LCHlch(33.28, 41.67, 130.04°)
OKLaboklab(41.59% -0.0746 0.0727)
OKLCHoklch(41.59% 0.104 135.7)
XYZxyz(4.8632, 7.6694, 2.0345)
Luminance0.0767 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#305817 #3F1758
analogous
#515817 #305817 #17581F
triadic
#305817 #173058 #581730
tetradic
#305817 #175158 #3F1758 #581F17
square
#305817 #175158 #3F1758 #581F17
split-complementary
#305817 #1F1758 #581751
monochromatic
#0D1806 #16270A #305817 #4A8924 #65B930

Accessibility & contrast

On white

8.29
#305817 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#305817 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #305817
8.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##305817#FFFFFF#000000##FFFFFF
##3058171.008.292.538.29
#FFFFFF8.291.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5B500D
Deuteranopia (green-blind)
#564D1D
Tritanopia (blue-blind)
#2F554B
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #305817;
/* rgb */ color: rgb(48, 88, 23);
/* oklch */ color: oklch(41.6% 0.104 135.7);
Tailwind
colors: {
  custom: {
    50: '#6c8758',
    500: '#305817',
    950: '#000000',
  },
}
SCSS
$custom: #305817;
$custom-light: #6c8758;
$custom-dark: #000000;
JSON
{
  "hex": "#305817",
  "rgb": {
    "r": 48,
    "g": 88,
    "b": 23
  },
  "hsl": {
    "h": 96.923,
    "s": 58.559,
    "l": 21.765
  },
  "oklch": {
    "l": 0.41587,
    "c": 0.10414,
    "h": 135.7
  },
  "luminance": 0.0767
}

Semantic roles & 50–950 ramp

primary
#305817
secondary
#6F3C8F
accent
#46E2A6
background
#F6F8F5
surface
#ECEFE9
border
#C7CAC5
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #305817

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

Preview Lab → · Contrast checker → · Palette generator →

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