#305A0F#305A0F

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

Color values

HEX#305A0F
RGBrgb(48, 90, 15)
HSLhsl(94, 71%, 21%)
HSVhsv(94, 83%, 35%)
CMYKcmyk(46.7%, 0%, 83.3%, 64.7%)
CIE-LABlab(33.93, -28.36, 35.81)
CIE-LCHlch(33.93, 45.68, 128.37°)
OKLaboklab(42.1% -0.0794 0.0796)
OKLCHoklch(42.1% 0.112 134.9)
XYZxyz(4.9612, 7.9749, 1.7297)
Luminance0.0798 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#305A0F #390F5A
analogous
#555A0F #305A0F #0F5A13
triadic
#305A0F #0F305A #5A0F30
tetradic
#305A0F #0F555A #390F5A #5A130F
square
#305A0F #0F555A #390F5A #5A130F
split-complementary
#305A0F #130F5A #5A0F55
monochromatic
#0E1A04 #142606 #305A0F #4C8E18 #68C320

Accessibility & contrast

On white

8.09
#305A0F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #305A0F
8.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##305A0F#FFFFFF#000000##FFFFFF
##305A0F1.008.092.608.09
#FFFFFF8.091.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.091.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #305a0f;
/* rgb */ color: rgb(48, 90, 15);
/* oklch */ color: oklch(42.1% 0.112 134.9);
Tailwind
colors: {
  custom: {
    50: '#6d8954',
    500: '#305a0f',
    950: '#000000',
  },
}
SCSS
$custom: #305a0f;
$custom-light: #6d8954;
$custom-dark: #000000;
JSON
{
  "hex": "#305a0f",
  "rgb": {
    "r": 48,
    "g": 90,
    "b": 15
  },
  "hsl": {
    "h": 93.6,
    "s": 71.429,
    "l": 20.588
  },
  "oklch": {
    "l": 0.42098,
    "c": 0.1124,
    "h": 134.9
  },
  "luminance": 0.07975
}

Semantic roles & 50–950 ramp

primary
#305A0F
secondary
#683194
accent
#3AEE9F
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #305A0F

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

Preview Lab → · Contrast checker → · Palette generator →

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