#305211#305211

#305211 is a dark, moderate yellow-green. Relative luminance 0.067; OKLCH L 39.8% C 0.100 H 133.4°. Best body text is #FFFFFF at 8.97:1 contrast (WCAG AA passes).

Color values

HEX#305211
RGBrgb(48, 82, 17)
HSLhsl(91, 66%, 19%)
HSVhsv(91, 79%, 32%)
CMYKcmyk(41.5%, 0%, 79.3%, 67.8%)
CIE-LABlab(31.12, -24.43, 32.30)
CIE-LCHlch(31.12, 40.50, 127.11°)
OKLaboklab(39.8% -0.0686 0.0726)
OKLCHoklch(39.8% 0.1 133.4)
XYZxyz(4.3373, 6.7032, 1.5955)
Luminance0.0670 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#305211 #331152
analogous
#515211 #305211 #115213
triadic
#305211 #113052 #521130
tetradic
#305211 #115152 #331152 #521311
square
#305211 #115152 #331152 #521311
split-complementary
#305211 #131152 #521151
monochromatic
#0F1905 #121F06 #305211 #4E851C #6BB726

Accessibility & contrast

On white

8.97
#305211 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#305211 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #305211
8.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##305211#FFFFFF#000000##FFFFFF
##3052111.008.972.348.97
#FFFFFF8.971.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#564B06
Deuteranopia (green-blind)
#514817
Tritanopia (blue-blind)
#304E45
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #305211;
/* rgb */ color: rgb(48, 82, 17);
/* oklch */ color: oklch(39.8% 0.100 133.4);
Tailwind
colors: {
  custom: {
    50: '#6c8354',
    500: '#305211',
    950: '#000000',
  },
}
SCSS
$custom: #305211;
$custom-light: #6c8354;
$custom-dark: #000000;
JSON
{
  "hex": "#305211",
  "rgb": {
    "r": 48,
    "g": 82,
    "b": 17
  },
  "hsl": {
    "h": 91.385,
    "s": 65.657,
    "l": 19.412
  },
  "oklch": {
    "l": 0.39801,
    "c": 0.09989,
    "h": 133.4
  },
  "luminance": 0.06703
}

Semantic roles & 50–950 ramp

primary
#305211
secondary
#61348B
accent
#3FE998
background
#F6F8F5
surface
#ECEFE8
border
#C7CAC4
text
#070A03
muted
#7A7C78

Preview Lab

Preview with #305211

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

Preview Lab → · Contrast checker → · Palette generator →

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