#305115#305115

#305115 is a dark, moderate yellow-green. Relative luminance 0.066; OKLCH L 39.5% C 0.095 H 133.8°. Best body text is #FFFFFF at 9.08:1 contrast (WCAG AA passes).

Color values

HEX#305115
RGBrgb(48, 81, 21)
HSLhsl(93, 59%, 20%)
HSVhsv(93, 74%, 32%)
CMYKcmyk(40.7%, 0%, 74.1%, 68.2%)
CIE-LABlab(30.80, -23.61, 30.21)
CIE-LCHlch(30.80, 38.35, 128.01°)
OKLaboklab(39.55% -0.066 0.0689)
OKLCHoklch(39.55% 0.095 133.8)
XYZxyz(4.2966, 6.5672, 1.7505)
Luminance0.0657 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#305115 #361551
analogous
#4E5115 #305115 #155118
triadic
#305115 #153051 #511530
tetradic
#305115 #154E51 #361551 #511815
square
#305115 #154E51 #361551 #511815
split-complementary
#305115 #181551 #51154E
monochromatic
#0E1806 #132008 #305115 #4D8222 #6AB22E

Accessibility & contrast

On white

9.08
#305115 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#305115 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #305115
9.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##305115#FFFFFF#000000##FFFFFF
##3051151.009.082.319.08
#FFFFFF9.081.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#544A0C
Deuteranopia (green-blind)
#50481A
Tritanopia (blue-blind)
#304E45
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #305115;
/* rgb */ color: rgb(48, 81, 21);
/* oklch */ color: oklch(39.5% 0.095 133.8);
Tailwind
colors: {
  custom: {
    50: '#6b8256',
    500: '#305115',
    950: '#000000',
  },
}
SCSS
$custom: #305115;
$custom-light: #6b8256;
$custom-dark: #000000;
JSON
{
  "hex": "#305115",
  "rgb": {
    "r": 48,
    "g": 81,
    "b": 21
  },
  "hsl": {
    "h": 93,
    "s": 58.824,
    "l": 20
  },
  "oklch": {
    "l": 0.39549,
    "c": 0.09541,
    "h": 133.8
  },
  "luminance": 0.06567
}

Semantic roles & 50–950 ramp

primary
#305115
secondary
#653989
accent
#46E29C
background
#F6F7F5
surface
#EBEEE9
border
#C6C9C5
text
#070A03
muted
#7A7C78

Preview Lab

Preview with #305115

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

Preview Lab → · Contrast checker → · Palette generator →

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