#305F0F#305F0F

#305F0F is a dark, moderate yellow-green. Relative luminance 0.088; OKLCH L 43.5% C 0.119 H 135.8°. Best body text is #FFFFFF at 7.58:1 contrast (WCAG AA passes).

Color values

HEX#305F0F
RGBrgb(48, 95, 15)
HSLhsl(95, 73%, 22%)
HSVhsv(95, 84%, 37%)
CMYKcmyk(49.5%, 0%, 84.2%, 62.7%)
CIE-LABlab(35.69, -30.61, 37.47)
CIE-LCHlch(35.69, 48.38, 129.25°)
OKLaboklab(43.54% -0.0854 0.0831)
OKLCHoklch(43.54% 0.119 135.8)
XYZxyz(5.3972, 8.8469, 1.8751)
Luminance0.0885 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#305F0F #3E0F5F
analogous
#585F0F #305F0F #0F5F16
triadic
#305F0F #0F305F #5F0F30
tetradic
#305F0F #0F585F #3E0F5F #5F160F
square
#305F0F #0F585F #3E0F5F #5F160F
split-complementary
#305F0F #160F5F #5F0F58
monochromatic
#0D1A04 #152A07 #305F0F #4B9417 #65C920

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##305F0F#FFFFFF#000000##FFFFFF
##305F0F1.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)
#635600
Deuteranopia (green-blind)
#5D5318
Tritanopia (blue-blind)
#2E5B50
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #305f0f;
/* rgb */ color: rgb(48, 95, 15);
/* oklch */ color: oklch(43.5% 0.119 135.8);
Tailwind
colors: {
  custom: {
    50: '#6e8d55',
    500: '#305f0f',
    950: '#000000',
  },
}
SCSS
$custom: #305f0f;
$custom-light: #6e8d55;
$custom-dark: #000000;
JSON
{
  "hex": "#305f0f",
  "rgb": {
    "r": 48,
    "g": 95,
    "b": 15
  },
  "hsl": {
    "h": 95.25,
    "s": 72.727,
    "l": 21.569
  },
  "oklch": {
    "l": 0.4354,
    "c": 0.11916,
    "h": 135.8
  },
  "luminance": 0.08847
}

Semantic roles & 50–950 ramp

primary
#305F0F
secondary
#6E3298
accent
#38EFA4
background
#F6F8F5
surface
#ECF0E9
border
#C7CBC5
text
#070C03
muted
#7A7D78

Preview Lab

Preview with #305F0F

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

Preview Lab → · Contrast checker → · Palette generator →

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