#305C0F#305C0F

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

Color values

HEX#305C0F
RGBrgb(48, 92, 15)
HSLhsl(94, 72%, 21%)
HSVhsv(94, 84%, 36%)
CMYKcmyk(47.8%, 0%, 83.7%, 63.9%)
CIE-LABlab(34.63, -29.27, 36.48)
CIE-LCHlch(34.63, 46.77, 128.74°)
OKLaboklab(42.68% -0.0818 0.081)
OKLCHoklch(42.68% 0.115 135.3)
XYZxyz(5.1322, 8.3169, 1.7867)
Luminance0.0832 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#305C0F #3B0F5C
analogous
#565C0F #305C0F #0F5C14
triadic
#305C0F #0F305C #5C0F30
tetradic
#305C0F #0F565C #3B0F5C #5C140F
square
#305C0F #0F565C #3B0F5C #5C140F
split-complementary
#305C0F #140F5C #5C0F56
monochromatic
#0E1A04 #152706 #305C0F #4B9118 #67C520

Accessibility & contrast

On white

7.88
#305C0F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #305C0F
7.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##305C0F#FFFFFF#000000##FFFFFF
##305C0F1.007.882.667.88
#FFFFFF7.881.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.881.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #305c0f;
/* rgb */ color: rgb(48, 92, 15);
/* oklch */ color: oklch(42.7% 0.115 135.3);
Tailwind
colors: {
  custom: {
    50: '#6d8a55',
    500: '#305c0f',
    950: '#000000',
  },
}
SCSS
$custom: #305c0f;
$custom-light: #6d8a55;
$custom-dark: #000000;
JSON
{
  "hex": "#305c0f",
  "rgb": {
    "r": 48,
    "g": 92,
    "b": 15
  },
  "hsl": {
    "h": 94.286,
    "s": 71.963,
    "l": 20.98
  },
  "oklch": {
    "l": 0.42675,
    "c": 0.11513,
    "h": 135.3
  },
  "luminance": 0.08317
}

Semantic roles & 50–950 ramp

primary
#305C0F
secondary
#6B3195
accent
#39EFA1
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#070C03
muted
#7A7D78

Preview Lab

Preview with #305C0F

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

Preview Lab → · Contrast checker → · Palette generator →

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