#306017#306017

#306017 is a dark, moderate yellow-green. Relative luminance 0.091; OKLCH L 43.9% C 0.116 H 137.0°. Best body text is #FFFFFF at 7.47:1 contrast (WCAG AA passes).

Color values

HEX#306017
RGBrgb(48, 96, 23)
HSLhsl(99, 61%, 23%)
HSVhsv(99, 76%, 38%)
CMYKcmyk(50%, 0%, 76%, 62.4%)
CIE-LABlab(36.09, -30.48, 34.80)
CIE-LCHlch(36.09, 46.26, 131.21°)
OKLaboklab(43.89% -0.0845 0.0788)
OKLCHoklch(43.89% 0.116 137)
XYZxyz(5.5563, 9.0556, 2.2656)
Luminance0.0906 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#306017 #471760
analogous
#546017 #306017 #176022
triadic
#306017 #173060 #601730
tetradic
#306017 #175460 #471760 #602217
square
#306017 #175460 #471760 #602217
split-complementary
#306017 #221760 #601754
monochromatic
#0C1906 #172F0B #306017 #499123 #61C32F

Accessibility & contrast

On white

7.47
#306017 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#306017 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #306017
7.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##306017#FFFFFF#000000##FFFFFF
##3060171.007.472.817.47
#FFFFFF7.471.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#63570B
Deuteranopia (green-blind)
#5D531E
Tritanopia (blue-blind)
#2D5C52
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #306017;
/* rgb */ color: rgb(48, 96, 23);
/* oklch */ color: oklch(43.9% 0.116 137.0);
Tailwind
colors: {
  custom: {
    50: '#6d8d59',
    500: '#306017',
    950: '#000000',
  },
}
SCSS
$custom: #306017;
$custom-light: #6d8d59;
$custom-dark: #000000;
JSON
{
  "hex": "#306017",
  "rgb": {
    "r": 48,
    "g": 96,
    "b": 23
  },
  "hsl": {
    "h": 99.452,
    "s": 61.345,
    "l": 23.333
  },
  "oklch": {
    "l": 0.43888,
    "c": 0.11553,
    "h": 137
  },
  "luminance": 0.09056
}

Semantic roles & 50–950 ramp

primary
#306017
secondary
#783C97
accent
#43E4AD
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#070C04
muted
#7A7D79

Preview Lab

Preview with #306017

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

Preview Lab → · Contrast checker → · Palette generator →

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