#305C0D#305C0D

#305C0D is a dark, moderate yellow-green. Relative luminance 0.083; OKLCH L 42.7% C 0.116 H 135.1°. Best body text is #FFFFFF at 7.89:1 contrast (WCAG AA passes).

Color values

HEX#305C0D
RGBrgb(48, 92, 13)
HSLhsl(93, 75%, 21%)
HSVhsv(93, 86%, 36%)
CMYKcmyk(47.8%, 0%, 85.9%, 63.9%)
CIE-LABlab(34.62, -29.39, 37.15)
CIE-LCHlch(34.62, 47.36, 128.35°)
OKLaboklab(42.66% -0.0823 0.0821)
OKLCHoklch(42.66% 0.116 135.1)
XYZxyz(5.1186, 8.3114, 1.7152)
Luminance0.0831 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#305C0D #390D5C
analogous
#575C0D #305C0D #0D5C12
triadic
#305C0D #0D305C #5C0D30
tetradic
#305C0D #0D575C #390D5C #5C120D
square
#305C0D #0D575C #390D5C #5C120D
split-complementary
#305C0D #120D5C #5C0D57
monochromatic
#0E1B04 #142605 #305C0D #4C9215 #68C71C

Accessibility & contrast

On white

7.89
#305C0D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#305C0D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #305C0D
7.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##305C0D#FFFFFF#000000##FFFFFF
##305C0D1.007.892.667.89
#FFFFFF7.891.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#605400
Deuteranopia (green-blind)
#5A5016
Tritanopia (blue-blind)
#2F584E
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #305c0d;
/* rgb */ color: rgb(48, 92, 13);
/* oklch */ color: oklch(42.7% 0.116 135.1);
Tailwind
colors: {
  custom: {
    50: '#6d8a54',
    500: '#305c0d',
    950: '#000000',
  },
}
SCSS
$custom: #305c0d;
$custom-light: #6d8a54;
$custom-dark: #000000;
JSON
{
  "hex": "#305c0d",
  "rgb": {
    "r": 48,
    "g": 92,
    "b": 13
  },
  "hsl": {
    "h": 93.418,
    "s": 75.238,
    "l": 20.588
  },
  "oklch": {
    "l": 0.42662,
    "c": 0.1162,
    "h": 135.1
  },
  "luminance": 0.08312
}

Semantic roles & 50–950 ramp

primary
#305C0D
secondary
#682F96
accent
#36F29F
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#070C03
muted
#7A7D78

Preview Lab

Preview with #305C0D

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

Preview Lab → · Contrast checker → · Palette generator →

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