#305F18#305F18

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

Color values

HEX#305F18
RGBrgb(48, 95, 24)
HSLhsl(100, 60%, 23%)
HSVhsv(100, 75%, 37%)
CMYKcmyk(49.5%, 0%, 74.7%, 62.7%)
CIE-LABlab(35.75, -29.95, 34.02)
CIE-LCHlch(35.75, 45.33, 131.35°)
OKLaboklab(43.61% -0.083 0.0773)
OKLCHoklch(43.61% 0.113 137)
XYZxyz(5.4758, 8.8784, 2.2891)
Luminance0.0888 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#305F18 #47185F
analogous
#535F18 #305F18 #185F23
triadic
#305F18 #18305F #5F1830
tetradic
#305F18 #18535F #47185F #5F2318
square
#305F18 #18535F #47185F #5F2318
split-complementary
#305F18 #23185F #5F1853
monochromatic
#0C1806 #172E0C #305F18 #499024 #61C131

Accessibility & contrast

On white

7.57
#305F18 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#305F18 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #305F18
7.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##305F18#FFFFFF#000000##FFFFFF
##305F181.007.572.787.57
#FFFFFF7.571.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#62570D
Deuteranopia (green-blind)
#5C531F
Tritanopia (blue-blind)
#2D5B51
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #305f18;
/* rgb */ color: rgb(48, 95, 24);
/* oklch */ color: oklch(43.6% 0.113 137.0);
Tailwind
colors: {
  custom: {
    50: '#6d8d5a',
    500: '#305f18',
    950: '#000000',
  },
}
SCSS
$custom: #305f18;
$custom-light: #6d8d5a;
$custom-dark: #000000;
JSON
{
  "hex": "#305f18",
  "rgb": {
    "r": 48,
    "g": 95,
    "b": 24
  },
  "hsl": {
    "h": 99.718,
    "s": 59.664,
    "l": 23.333
  },
  "oklch": {
    "l": 0.4361,
    "c": 0.11341,
    "h": 137
  },
  "luminance": 0.08879
}

Semantic roles & 50–950 ramp

primary
#305F18
secondary
#783D95
accent
#45E3AD
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#070C04
muted
#7A7D79

Preview Lab

Preview with #305F18

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

Preview Lab → · Contrast checker → · Palette generator →

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