#305B0F#305B0F

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

Color values

HEX#305B0F
RGBrgb(48, 91, 15)
HSLhsl(94, 72%, 21%)
HSVhsv(94, 84%, 36%)
CMYKcmyk(47.3%, 0%, 83.5%, 64.3%)
CIE-LABlab(34.28, -28.81, 36.14)
CIE-LCHlch(34.28, 46.22, 128.56°)
OKLaboklab(42.39% -0.0806 0.0803)
OKLCHoklch(42.39% 0.114 135.1)
XYZxyz(5.0461, 8.1447, 1.7580)
Luminance0.0814 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#305B0F #3A0F5B
analogous
#565B0F #305B0F #0F5B14
triadic
#305B0F #0F305B #5B0F30
tetradic
#305B0F #0F565B #3A0F5B #5B140F
square
#305B0F #0F565B #3A0F5B #5B140F
split-complementary
#305B0F #140F5B #5B0F56
monochromatic
#0E1A04 #142606 #305B0F #4C9018 #67C420

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##305B0F#FFFFFF#000000##FFFFFF
##305B0F1.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: #305b0f;
/* rgb */ color: rgb(48, 91, 15);
/* oklch */ color: oklch(42.4% 0.114 135.1);
Tailwind
colors: {
  custom: {
    50: '#6d8a54',
    500: '#305b0f',
    950: '#000000',
  },
}
SCSS
$custom: #305b0f;
$custom-light: #6d8a54;
$custom-dark: #000000;
JSON
{
  "hex": "#305b0f",
  "rgb": {
    "r": 48,
    "g": 91,
    "b": 15
  },
  "hsl": {
    "h": 93.947,
    "s": 71.698,
    "l": 20.784
  },
  "oklch": {
    "l": 0.42386,
    "c": 0.11377,
    "h": 135.1
  },
  "luminance": 0.08145
}

Semantic roles & 50–950 ramp

primary
#305B0F
secondary
#693195
accent
#39EEA0
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #305B0F

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

Preview Lab → · Contrast checker → · Palette generator →

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