#305B14#305B14

#305B14 is a dark, moderate yellow-green. Relative luminance 0.082; OKLCH L 42.4% C 0.111 H 135.8°. Best body text is #FFFFFF at 7.98:1 contrast (WCAG AA passes).

Color values

HEX#305B14
RGBrgb(48, 91, 20)
HSLhsl(96, 64%, 22%)
HSVhsv(96, 78%, 36%)
CMYKcmyk(47.3%, 0%, 78%, 64.3%)
CIE-LABlab(34.32, -28.46, 34.26)
CIE-LCHlch(34.32, 44.54, 129.72°)
OKLaboklab(42.42% -0.0793 0.0772)
OKLCHoklch(42.42% 0.111 135.8)
XYZxyz(5.0861, 8.1608, 1.9689)
Luminance0.0816 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#305B14 #3F145B
analogous
#545B14 #305B14 #145B1C
triadic
#305B14 #14305B #5B1430
tetradic
#305B14 #14545B #3F145B #5B1C14
square
#305B14 #14545B #3F145B #5B1C14
split-complementary
#305B14 #1C145B #5B1454
monochromatic
#0D1906 #162909 #305B14 #4A8D1F #65BF2A

Accessibility & contrast

On white

7.98
#305B14 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #305B14
7.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##305B14#FFFFFF#000000##FFFFFF
##305B141.007.982.637.98
#FFFFFF7.981.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5F5307
Deuteranopia (green-blind)
#594F1B
Tritanopia (blue-blind)
#2E574D
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #305b14;
/* rgb */ color: rgb(48, 91, 20);
/* oklch */ color: oklch(42.4% 0.111 135.8);
Tailwind
colors: {
  custom: {
    50: '#6d8a57',
    500: '#305b14',
    950: '#000000',
  },
}
SCSS
$custom: #305b14;
$custom-light: #6d8a57;
$custom-dark: #000000;
JSON
{
  "hex": "#305b14",
  "rgb": {
    "r": 48,
    "g": 91,
    "b": 20
  },
  "hsl": {
    "h": 96.338,
    "s": 63.964,
    "l": 21.765
  },
  "oklch": {
    "l": 0.42424,
    "c": 0.11063,
    "h": 135.8
  },
  "luminance": 0.08161
}

Semantic roles & 50–950 ramp

primary
#305B14
secondary
#6F3893
accent
#41E7A5
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #305B14

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

Preview Lab → · Contrast checker → · Palette generator →

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