#305D0F#305D0F

#305D0F is a dark, moderate yellow-green. Relative luminance 0.085; OKLCH L 43.0% C 0.116 H 135.5°. Best body text is #FFFFFF at 7.78:1 contrast (WCAG AA passes).

Color values

HEX#305D0F
RGBrgb(48, 93, 15)
HSLhsl(95, 72%, 21%)
HSVhsv(95, 84%, 36%)
CMYKcmyk(48.4%, 0%, 83.9%, 63.5%)
CIE-LABlab(34.99, -29.72, 36.81)
CIE-LCHlch(34.99, 47.31, 128.92°)
OKLaboklab(42.96% -0.083 0.0817)
OKLCHoklch(42.96% 0.116 135.5)
XYZxyz(5.2194, 8.4912, 1.8158)
Luminance0.0849 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#305D0F #3C0F5D
analogous
#575D0F #305D0F #0F5D15
triadic
#305D0F #0F305D #5D0F30
tetradic
#305D0F #0F575D #3C0F5D #5D150F
square
#305D0F #0F575D #3C0F5D #5D150F
split-complementary
#305D0F #150F5D #5D0F57
monochromatic
#0E1A04 #152806 #305D0F #4B9217 #66C620

Accessibility & contrast

On white

7.78
#305D0F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#305D0F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #305D0F
7.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##305D0F#FFFFFF#000000##FFFFFF
##305D0F1.007.782.707.78
#FFFFFF7.781.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#615500
Deuteranopia (green-blind)
#5B5118
Tritanopia (blue-blind)
#2E594F
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #305d0f;
/* rgb */ color: rgb(48, 93, 15);
/* oklch */ color: oklch(43.0% 0.116 135.5);
Tailwind
colors: {
  custom: {
    50: '#6d8b55',
    500: '#305d0f',
    950: '#000000',
  },
}
SCSS
$custom: #305d0f;
$custom-light: #6d8b55;
$custom-dark: #000000;
JSON
{
  "hex": "#305d0f",
  "rgb": {
    "r": 48,
    "g": 93,
    "b": 15
  },
  "hsl": {
    "h": 94.615,
    "s": 72.222,
    "l": 21.176
  },
  "oklch": {
    "l": 0.42963,
    "c": 0.11647,
    "h": 135.5
  },
  "luminance": 0.08492
}

Semantic roles & 50–950 ramp

primary
#305D0F
secondary
#6C3196
accent
#39EFA2
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#070C03
muted
#7A7D78

Preview Lab

Preview with #305D0F

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

Preview Lab → · Contrast checker → · Palette generator →

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