#305A15#305A15

#305A15 is a dark, moderate yellow-green. Relative luminance 0.080; OKLCH L 42.1% C 0.109 H 135.8°. Best body text is #FFFFFF at 8.08:1 contrast (WCAG AA passes).

Color values

HEX#305A15
RGBrgb(48, 90, 21)
HSLhsl(97, 62%, 22%)
HSVhsv(97, 77%, 35%)
CMYKcmyk(46.7%, 0%, 76.7%, 64.7%)
CIE-LABlab(33.97, -27.92, 33.49)
CIE-LCHlch(33.97, 43.60, 129.82°)
OKLaboklab(42.14% -0.0777 0.0757)
OKLCHoklch(42.14% 0.109 135.8)
XYZxyz(5.0103, 7.9946, 1.9884)
Luminance0.0799 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#305A15 #3F155A
analogous
#535A15 #305A15 #155A1D
triadic
#305A15 #15305A #5A1530
tetradic
#305A15 #15535A #3F155A #5A1D15
square
#305A15 #15535A #3F155A #5A1D15
split-complementary
#305A15 #1D155A #5A1553
monochromatic
#0D1906 #162809 #305A15 #4A8C21 #65BD2C

Accessibility & contrast

On white

8.08
#305A15 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#305A15 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #305A15
8.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##305A15#FFFFFF#000000##FFFFFF
##305A151.008.082.608.08
#FFFFFF8.081.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5D5209
Deuteranopia (green-blind)
#584F1C
Tritanopia (blue-blind)
#2F564C
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #305a15;
/* rgb */ color: rgb(48, 90, 21);
/* oklch */ color: oklch(42.1% 0.109 135.8);
Tailwind
colors: {
  custom: {
    50: '#6d8957',
    500: '#305a15',
    950: '#000000',
  },
}
SCSS
$custom: #305a15;
$custom-light: #6d8957;
$custom-dark: #000000;
JSON
{
  "hex": "#305a15",
  "rgb": {
    "r": 48,
    "g": 90,
    "b": 21
  },
  "hsl": {
    "h": 96.522,
    "s": 62.162,
    "l": 21.765
  },
  "oklch": {
    "l": 0.42144,
    "c": 0.10852,
    "h": 135.8
  },
  "luminance": 0.07995
}

Semantic roles & 50–950 ramp

primary
#305A15
secondary
#6F3992
accent
#43E5A6
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #305A15

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

Preview Lab → · Contrast checker → · Palette generator →

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