#306117#306117

#306117 is a dark, moderate yellow-green. Relative luminance 0.092; OKLCH L 44.2% C 0.117 H 137.1°. Best body text is #FFFFFF at 7.37:1 contrast (WCAG AA passes).

Color values

HEX#306117
RGBrgb(48, 97, 23)
HSLhsl(100, 62%, 24%)
HSVhsv(100, 76%, 38%)
CMYKcmyk(50.5%, 0%, 76.3%, 62%)
CIE-LABlab(36.44, -30.92, 35.16)
CIE-LCHlch(36.44, 46.82, 131.33°)
OKLaboklab(44.18% -0.0857 0.0795)
OKLCHoklch(44.18% 0.117 137.1)
XYZxyz(5.6481, 9.2393, 2.2962)
Luminance0.0924 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#306117 #481761
analogous
#556117 #306117 #176123
triadic
#306117 #173061 #611730
tetradic
#306117 #175561 #481761 #612317
square
#306117 #175561 #481761 #612317
split-complementary
#306117 #231761 #611755
monochromatic
#0C1906 #18300B #306117 #489223 #61C42E

Accessibility & contrast

On white

7.37
#306117 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#306117 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #306117
7.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##306117#FFFFFF#000000##FFFFFF
##3061171.007.372.857.37
#FFFFFF7.371.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#64580A
Deuteranopia (green-blind)
#5E541E
Tritanopia (blue-blind)
#2D5D52
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #306117;
/* rgb */ color: rgb(48, 97, 23);
/* oklch */ color: oklch(44.2% 0.117 137.1);
Tailwind
colors: {
  custom: {
    50: '#6e8e59',
    500: '#306117',
    950: '#000000',
  },
}
SCSS
$custom: #306117;
$custom-light: #6e8e59;
$custom-dark: #000000;
JSON
{
  "hex": "#306117",
  "rgb": {
    "r": 48,
    "g": 97,
    "b": 23
  },
  "hsl": {
    "h": 99.73,
    "s": 61.667,
    "l": 23.529
  },
  "oklch": {
    "l": 0.44176,
    "c": 0.11692,
    "h": 137.1
  },
  "luminance": 0.0924
}

Semantic roles & 50–950 ramp

primary
#306117
secondary
#793C98
accent
#43E5AE
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#070C04
muted
#7A7D79

Preview Lab

Preview with #306117

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

Preview Lab → · Contrast checker → · Palette generator →

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