#305412#305412

#305412 is a dark, moderate yellow-green. Relative luminance 0.070; OKLCH L 40.4% C 0.102 H 134.0°. Best body text is #FFFFFF at 8.74:1 contrast (WCAG AA passes).

Color values

HEX#305412
RGBrgb(48, 84, 18)
HSLhsl(93, 65%, 20%)
HSVhsv(93, 79%, 33%)
CMYKcmyk(42.9%, 0%, 78.6%, 67.1%)
CIE-LABlab(31.84, -25.33, 32.60)
CIE-LCHlch(31.84, 41.28, 127.85°)
OKLaboklab(40.39% -0.071 0.0734)
OKLCHoklch(40.39% 0.102 134)
XYZxyz(4.4983, 7.0125, 1.6887)
Luminance0.0701 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#305412 #361254
analogous
#515412 #305412 #125415
triadic
#305412 #123054 #541230
tetradic
#305412 #125154 #361254 #541512
square
#305412 #125154 #361254 #541512
split-complementary
#305412 #151254 #541251
monochromatic
#0E1905 #132207 #305412 #4D861D #6AB928

Accessibility & contrast

On white

8.74
#305412 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#305412 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #305412
8.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##305412#FFFFFF#000000##FFFFFF
##3054121.008.742.408.74
#FFFFFF8.741.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#584D07
Deuteranopia (green-blind)
#534A18
Tritanopia (blue-blind)
#305047
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #305412;
/* rgb */ color: rgb(48, 84, 18);
/* oklch */ color: oklch(40.4% 0.102 134.0);
Tailwind
colors: {
  custom: {
    50: '#6c8455',
    500: '#305412',
    950: '#000000',
  },
}
SCSS
$custom: #305412;
$custom-light: #6c8455;
$custom-dark: #000000;
JSON
{
  "hex": "#305412",
  "rgb": {
    "r": 48,
    "g": 84,
    "b": 18
  },
  "hsl": {
    "h": 92.727,
    "s": 64.706,
    "l": 20
  },
  "oklch": {
    "l": 0.40387,
    "c": 0.10207,
    "h": 134
  },
  "luminance": 0.07013
}

Semantic roles & 50–950 ramp

primary
#305412
secondary
#65358D
accent
#40E89C
background
#F6F8F5
surface
#ECEFE9
border
#C7CAC5
text
#070B03
muted
#7A7C78

Preview Lab

Preview with #305412

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

Preview Lab → · Contrast checker → · Palette generator →

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