#305B0E#305B0E

#305B0E is a dark, moderate yellow-green. Relative luminance 0.081; OKLCH L 42.4% C 0.114 H 135.0°. Best body text is #FFFFFF at 7.99:1 contrast (WCAG AA passes).

Color values

HEX#305B0E
RGBrgb(48, 91, 14)
HSLhsl(94, 73%, 21%)
HSVhsv(94, 85%, 36%)
CMYKcmyk(47.3%, 0%, 84.6%, 64.3%)
CIE-LABlab(34.28, -28.88, 36.49)
CIE-LCHlch(34.28, 46.53, 128.36°)
OKLaboklab(42.38% -0.0808 0.0808)
OKLCHoklch(42.38% 0.114 135)
XYZxyz(5.0392, 8.1420, 1.7214)
Luminance0.0814 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#305B0E #390E5B
analogous
#565B0E #305B0E #0E5B12
triadic
#305B0E #0E305B #5B0E30
tetradic
#305B0E #0E565B #390E5B #5B120E
square
#305B0E #0E565B #390E5B #5B120E
split-complementary
#305B0E #120E5B #5B0E56
monochromatic
#0E1B04 #142606 #305B0E #4C9016 #68C51E

Accessibility & contrast

On white

7.99
#305B0E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#305B0E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #305B0E
7.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##305B0E#FFFFFF#000000##FFFFFF
##305B0E1.007.992.637.99
#FFFFFF7.991.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5F5300
Deuteranopia (green-blind)
#594F17
Tritanopia (blue-blind)
#2F574D
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #305b0e;
/* rgb */ color: rgb(48, 91, 14);
/* oklch */ color: oklch(42.4% 0.114 135.0);
Tailwind
colors: {
  custom: {
    50: '#6d8a54',
    500: '#305b0e',
    950: '#000000',
  },
}
SCSS
$custom: #305b0e;
$custom-light: #6d8a54;
$custom-dark: #000000;
JSON
{
  "hex": "#305b0e",
  "rgb": {
    "r": 48,
    "g": 91,
    "b": 14
  },
  "hsl": {
    "h": 93.506,
    "s": 73.333,
    "l": 20.588
  },
  "oklch": {
    "l": 0.4238,
    "c": 0.11432,
    "h": 135
  },
  "luminance": 0.08142
}

Semantic roles & 50–950 ramp

primary
#305B0E
secondary
#683095
accent
#38F09F
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #305B0E

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

Preview Lab → · Contrast checker → · Palette generator →

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