#305315#305315

#305315 is a dark, moderate yellow-green. Relative luminance 0.069; OKLCH L 40.1% C 0.098 H 134.3°. Best body text is #FFFFFF at 8.85:1 contrast (WCAG AA passes).

Color values

HEX#305315
RGBrgb(48, 83, 21)
HSLhsl(94, 60%, 20%)
HSVhsv(94, 75%, 33%)
CMYKcmyk(42.2%, 0%, 74.7%, 67.5%)
CIE-LABlab(31.51, -24.59, 30.95)
CIE-LCHlch(31.51, 39.53, 128.47°)
OKLaboklab(40.13% -0.0687 0.0704)
OKLCHoklch(40.13% 0.098 134.3)
XYZxyz(4.4475, 6.8688, 1.8008)
Luminance0.0687 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#305315 #381553
analogous
#4F5315 #305315 #155319
triadic
#305315 #153053 #531530
tetradic
#305315 #154F53 #381553 #531915
square
#305315 #154F53 #381553 #531915
split-complementary
#305315 #191553 #53154F
monochromatic
#0E1806 #142209 #305315 #4C8421 #68B52E

Accessibility & contrast

On white

8.85
#305315 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#305315 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #305315
8.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##305315#FFFFFF#000000##FFFFFF
##3053151.008.852.378.85
#FFFFFF8.851.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#564C0C
Deuteranopia (green-blind)
#52491A
Tritanopia (blue-blind)
#305047
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #305315;
/* rgb */ color: rgb(48, 83, 21);
/* oklch */ color: oklch(40.1% 0.098 134.3);
Tailwind
colors: {
  custom: {
    50: '#6c8356',
    500: '#305315',
    950: '#000000',
  },
}
SCSS
$custom: #305315;
$custom-light: #6c8356;
$custom-dark: #000000;
JSON
{
  "hex": "#305315",
  "rgb": {
    "r": 48,
    "g": 83,
    "b": 21
  },
  "hsl": {
    "h": 93.871,
    "s": 59.615,
    "l": 20.392
  },
  "oklch": {
    "l": 0.40126,
    "c": 0.09838,
    "h": 134.3
  },
  "luminance": 0.06869
}

Semantic roles & 50–950 ramp

primary
#305315
secondary
#67398B
accent
#45E39E
background
#F6F8F5
surface
#EBEFE9
border
#C6CAC5
text
#070A03
muted
#7A7C78

Preview Lab

Preview with #305315

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

Preview Lab → · Contrast checker → · Palette generator →

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