#305712#305712

#305712 is a dark, moderate yellow-green. Relative luminance 0.075; OKLCH L 41.3% C 0.106 H 134.7°. Best body text is #FFFFFF at 8.41:1 contrast (WCAG AA passes).

Color values

HEX#305712
RGBrgb(48, 87, 18)
HSLhsl(94, 66%, 21%)
HSVhsv(94, 79%, 34%)
CMYKcmyk(44.8%, 0%, 79.3%, 65.9%)
CIE-LABlab(32.89, -26.75, 33.65)
CIE-LCHlch(32.89, 42.99, 128.48°)
OKLaboklab(41.25% -0.0748 0.0756)
OKLCHoklch(41.25% 0.106 134.7)
XYZxyz(4.7362, 7.4882, 1.7680)
Luminance0.0749 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#305712 #391257
analogous
#525712 #305712 #125716
triadic
#305712 #123057 #571230
tetradic
#305712 #125257 #391257 #571612
square
#305712 #125257 #391257 #571612
split-complementary
#305712 #161257 #571252
monochromatic
#0E1905 #142408 #305712 #4C8A1C #68BC27

Accessibility & contrast

On white

8.41
#305712 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#305712 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #305712
8.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##305712#FFFFFF#000000##FFFFFF
##3057121.008.412.508.41
#FFFFFF8.411.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5B4F05
Deuteranopia (green-blind)
#554C19
Tritanopia (blue-blind)
#2F534A
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #305712;
/* rgb */ color: rgb(48, 87, 18);
/* oklch */ color: oklch(41.3% 0.106 134.7);
Tailwind
colors: {
  custom: {
    50: '#6c8755',
    500: '#305712',
    950: '#000000',
  },
}
SCSS
$custom: #305712;
$custom-light: #6c8755;
$custom-dark: #000000;
JSON
{
  "hex": "#305712",
  "rgb": {
    "r": 48,
    "g": 87,
    "b": 18
  },
  "hsl": {
    "h": 93.913,
    "s": 65.714,
    "l": 20.588
  },
  "oklch": {
    "l": 0.41254,
    "c": 0.10636,
    "h": 134.7
  },
  "luminance": 0.07488
}

Semantic roles & 50–950 ramp

primary
#305712
secondary
#683590
accent
#3FE99F
background
#F6F8F5
surface
#ECEFE9
border
#C7CAC5
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #305712

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

Preview Lab → · Contrast checker → · Palette generator →

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