#305F12#305F12

#305F12 is a dark, moderate yellow-green. Relative luminance 0.089; OKLCH L 43.6% C 0.117 H 136.2°. Best body text is #FFFFFF at 7.58:1 contrast (WCAG AA passes).

Color values

HEX#305F12
RGBrgb(48, 95, 18)
HSLhsl(97, 68%, 22%)
HSVhsv(97, 81%, 37%)
CMYKcmyk(49.5%, 0%, 81.1%, 62.7%)
CIE-LABlab(35.71, -30.41, 36.41)
CIE-LCHlch(35.71, 47.45, 129.87°)
OKLaboklab(43.56% -0.0847 0.0813)
OKLCHoklch(43.56% 0.117 136.2)
XYZxyz(5.4202, 8.8561, 1.9959)
Luminance0.0886 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#305F12 #41125F
analogous
#575F12 #305F12 #125F1A
triadic
#305F12 #12305F #5F1230
tetradic
#305F12 #12575F #41125F #5F1A12
square
#305F12 #12575F #41125F #5F1A12
split-complementary
#305F12 #1A125F #5F1257
monochromatic
#0D1A05 #162C08 #305F12 #4A921C #64C625

Accessibility & contrast

On white

7.58
#305F12 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#305F12 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #305F12
7.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##305F12#FFFFFF#000000##FFFFFF
##305F121.007.582.777.58
#FFFFFF7.581.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#635602
Deuteranopia (green-blind)
#5C531A
Tritanopia (blue-blind)
#2E5B50
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #305f12;
/* rgb */ color: rgb(48, 95, 18);
/* oklch */ color: oklch(43.6% 0.117 136.2);
Tailwind
colors: {
  custom: {
    50: '#6e8d56',
    500: '#305f12',
    950: '#000000',
  },
}
SCSS
$custom: #305f12;
$custom-light: #6e8d56;
$custom-dark: #000000;
JSON
{
  "hex": "#305f12",
  "rgb": {
    "r": 48,
    "g": 95,
    "b": 18
  },
  "hsl": {
    "h": 96.623,
    "s": 68.142,
    "l": 22.157
  },
  "oklch": {
    "l": 0.43561,
    "c": 0.11743,
    "h": 136.2
  },
  "luminance": 0.08856
}

Semantic roles & 50–950 ramp

primary
#305F12
secondary
#713697
accent
#3DEBA7
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#070C03
muted
#7A7D78

Preview Lab

Preview with #305F12

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

Preview Lab → · Contrast checker → · Palette generator →

#305F12 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva