#304017#304017

#304017 is a dark, moderate yellow-green. Relative luminance 0.044; OKLCH L 34.7% C 0.067 H 127.4°. Best body text is #FFFFFF at 11.22:1 contrast (WCAG AA passes).

Color values

HEX#304017
RGBrgb(48, 64, 23)
HSLhsl(83, 47%, 17%)
HSVhsv(83, 64%, 25%)
CMYKcmyk(25%, 0%, 64.1%, 74.9%)
CIE-LABlab(24.82, -14.37, 22.62)
CIE-LCHlch(24.82, 26.80, 122.43°)
OKLaboklab(34.69% -0.0405 0.053)
OKLCHoklch(34.69% 0.067 127.4)
XYZxyz(3.2070, 4.3570, 1.4825)
Luminance0.0436 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#304017 #271740
analogous
#403C17 #304017 #1C4017
triadic
#304017 #173040 #401730
tetradic
#304017 #17403C #271740 #40171C
square
#304017 #17403C #271740 #40171C
split-complementary
#304017 #171C40 #3C1740
monochromatic
#111708 #111708 #304017 #526D27 #749A37

Accessibility & contrast

On white

11.22
#304017 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#304017 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #304017
11.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##304017#FFFFFF#000000##FFFFFF
##3040171.0011.221.8711.22
#FFFFFF11.221.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#433C13
Deuteranopia (green-blind)
#413B1A
Tritanopia (blue-blind)
#323D37
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #304017;
/* rgb */ color: rgb(48, 64, 23);
/* oklch */ color: oklch(34.7% 0.067 127.4);
Tailwind
colors: {
  custom: {
    50: '#6a7555',
    500: '#304017',
    950: '#000000',
  },
}
SCSS
$custom: #304017;
$custom-light: #6a7555;
$custom-dark: #000000;
JSON
{
  "hex": "#304017",
  "rgb": {
    "r": 48,
    "g": 64,
    "b": 23
  },
  "hsl": {
    "h": 83.415,
    "s": 47.126,
    "l": 17.059
  },
  "oklch": {
    "l": 0.34694,
    "c": 0.06669,
    "h": 127.4
  },
  "luminance": 0.04357
}

Semantic roles & 50–950 ramp

primary
#304017
secondary
#533C77
accent
#51D785
background
#F6F7F5
surface
#EBEDE9
border
#C6C8C5
text
#060803
muted
#7A7B78

Preview Lab

Preview with #304017

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

Preview Lab → · Contrast checker → · Palette generator →

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