#305017#305017

#305017 is a dark, moderate yellow-green. Relative luminance 0.064; OKLCH L 39.3% C 0.092 H 133.9°. Best body text is #FFFFFF at 9.19:1 contrast (WCAG AA passes).

Color values

HEX#305017
RGBrgb(48, 80, 23)
HSLhsl(94, 55%, 20%)
HSVhsv(94, 71%, 31%)
CMYKcmyk(40%, 0%, 71.2%, 68.6%)
CIE-LABlab(30.47, -22.93, 28.91)
CIE-LCHlch(30.47, 36.89, 128.42°)
OKLaboklab(39.28% -0.064 0.0664)
OKLCHoklch(39.28% 0.092 133.9)
XYZxyz(4.2422, 6.4274, 1.8275)
Luminance0.0643 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#305017 #371750
analogous
#4C5017 #305017 #17501A
triadic
#305017 #173050 #501730
tetradic
#305017 #174C50 #371750 #501A17
square
#305017 #174C50 #371750 #501A17
split-complementary
#305017 #1A1750 #50174C
monochromatic
#0E1807 #132009 #305017 #4D8025 #69AF32

Accessibility & contrast

On white

9.19
#305017 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#305017 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #305017
9.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##305017#FFFFFF#000000##FFFFFF
##3050171.009.192.299.19
#FFFFFF9.191.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#534910
Deuteranopia (green-blind)
#4F471C
Tritanopia (blue-blind)
#304D44
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #305017;
/* rgb */ color: rgb(48, 80, 23);
/* oklch */ color: oklch(39.3% 0.092 133.9);
Tailwind
colors: {
  custom: {
    50: '#6b8157',
    500: '#305017',
    950: '#000000',
  },
}
SCSS
$custom: #305017;
$custom-light: #6b8157;
$custom-dark: #000000;
JSON
{
  "hex": "#305017",
  "rgb": {
    "r": 48,
    "g": 80,
    "b": 23
  },
  "hsl": {
    "h": 93.684,
    "s": 55.34,
    "l": 20.196
  },
  "oklch": {
    "l": 0.39282,
    "c": 0.09222,
    "h": 133.9
  },
  "luminance": 0.06428
}

Semantic roles & 50–950 ramp

primary
#305017
secondary
#663C87
accent
#49DF9D
background
#F6F7F5
surface
#EBEEE9
border
#C6C9C5
text
#070A03
muted
#7A7C78

Preview Lab

Preview with #305017

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

Preview Lab → · Contrast checker → · Palette generator →

#305017 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva