#305012#305012

#305012 is a dark, moderate yellow-green. Relative luminance 0.064; OKLCH L 39.2% C 0.096 H 133.0°. Best body text is #FFFFFF at 9.20:1 contrast (WCAG AA passes).

Color values

HEX#305012
RGBrgb(48, 80, 18)
HSLhsl(91, 63%, 19%)
HSVhsv(91, 78%, 31%)
CMYKcmyk(40%, 0%, 77.5%, 68.6%)
CIE-LABlab(30.42, -23.37, 31.17)
CIE-LCHlch(30.42, 38.96, 126.86°)
OKLaboklab(39.23% -0.0657 0.0704)
OKLCHoklch(39.23% 0.096 133)
XYZxyz(4.1967, 6.4092, 1.5881)
Luminance0.0641 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#305012 #321250
analogous
#4F5012 #305012 #125013
triadic
#305012 #123050 #501230
tetradic
#305012 #124F50 #321250 #501312
square
#305012 #124F50 #321250 #501312
split-complementary
#305012 #131250 #50124F
monochromatic
#0F1906 #121E07 #305012 #4E821D #6CB428

Accessibility & contrast

On white

9.20
#305012 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#305012 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #305012
9.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##305012#FFFFFF#000000##FFFFFF
##3050121.009.202.289.20
#FFFFFF9.201.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#544908
Deuteranopia (green-blind)
#4F4718
Tritanopia (blue-blind)
#304D44
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #305012;
/* rgb */ color: rgb(48, 80, 18);
/* oklch */ color: oklch(39.2% 0.096 133.0);
Tailwind
colors: {
  custom: {
    50: '#6b8154',
    500: '#305012',
    950: '#000000',
  },
}
SCSS
$custom: #305012;
$custom-light: #6b8154;
$custom-dark: #000000;
JSON
{
  "hex": "#305012",
  "rgb": {
    "r": 48,
    "g": 80,
    "b": 18
  },
  "hsl": {
    "h": 90.968,
    "s": 63.265,
    "l": 19.216
  },
  "oklch": {
    "l": 0.39232,
    "c": 0.09625,
    "h": 133
  },
  "luminance": 0.06409
}

Semantic roles & 50–950 ramp

primary
#305012
secondary
#603589
accent
#41E697
background
#F6F7F5
surface
#EBEEE9
border
#C6C9C5
text
#070A03
muted
#7A7C78

Preview Lab

Preview with #305012

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

Preview Lab → · Contrast checker → · Palette generator →

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