#305F15#305F15

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

Color values

HEX#305F15
RGBrgb(48, 95, 21)
HSLhsl(98, 64%, 23%)
HSVhsv(98, 78%, 37%)
CMYKcmyk(49.5%, 0%, 77.9%, 62.7%)
CIE-LABlab(35.73, -30.19, 35.26)
CIE-LCHlch(35.73, 46.42, 130.57°)
OKLaboklab(43.58% -0.0839 0.0794)
OKLCHoklch(43.58% 0.116 136.6)
XYZxyz(5.4463, 8.8666, 2.1338)
Luminance0.0887 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#305F15 #44155F
analogous
#555F15 #305F15 #155F1F
triadic
#305F15 #15305F #5F1530
tetradic
#305F15 #15555F #44155F #5F1F15
square
#305F15 #15555F #44155F #5F1F15
split-complementary
#305F15 #1F155F #5F1555
monochromatic
#0D1906 #172D0A #305F15 #499120 #63C32B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##305F15#FFFFFF#000000##FFFFFF
##305F151.007.572.777.57
#FFFFFF7.571.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#625607
Deuteranopia (green-blind)
#5C531C
Tritanopia (blue-blind)
#2E5B51
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #305f15;
/* rgb */ color: rgb(48, 95, 21);
/* oklch */ color: oklch(43.6% 0.116 136.6);
Tailwind
colors: {
  custom: {
    50: '#6d8d58',
    500: '#305f15',
    950: '#000000',
  },
}
SCSS
$custom: #305f15;
$custom-light: #6d8d58;
$custom-dark: #000000;
JSON
{
  "hex": "#305f15",
  "rgb": {
    "r": 48,
    "g": 95,
    "b": 21
  },
  "hsl": {
    "h": 98.108,
    "s": 63.793,
    "l": 22.745
  },
  "oklch": {
    "l": 0.43584,
    "c": 0.11552,
    "h": 136.6
  },
  "luminance": 0.08867
}

Semantic roles & 50–950 ramp

primary
#305F15
secondary
#743A96
accent
#41E7AA
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#070C03
muted
#7A7D78

Preview Lab

Preview with #305F15

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

Preview Lab → · Contrast checker → · Palette generator →

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