#305118#305118

#305118 is a dark, moderate yellow-green. Relative luminance 0.066; OKLCH L 39.6% C 0.093 H 134.4°. Best body text is #FFFFFF at 9.07:1 contrast (WCAG AA passes).

Color values

HEX#305118
RGBrgb(48, 81, 24)
HSLhsl(95, 54%, 21%)
HSVhsv(95, 70%, 32%)
CMYKcmyk(40.7%, 0%, 70.4%, 68.2%)
CIE-LABlab(30.83, -23.33, 28.81)
CIE-LCHlch(30.83, 37.07, 129.00°)
OKLaboklab(39.58% -0.065 0.0663)
OKLCHoklch(39.58% 0.093 134.4)
XYZxyz(4.3261, 6.5790, 1.9059)
Luminance0.0658 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#305118 #391851
analogous
#4C5118 #305118 #18511C
triadic
#305118 #183051 #511830
tetradic
#305118 #184C51 #391851 #511C18
square
#305118 #184C51 #391851 #511C18
split-complementary
#305118 #1C1851 #51184C
monochromatic
#0E1807 #14220A #305118 #4C8026 #68AF34

Accessibility & contrast

On white

9.07
#305118 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#305118 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #305118
9.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##305118#FFFFFF#000000##FFFFFF
##3051181.009.072.329.07
#FFFFFF9.071.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#544A11
Deuteranopia (green-blind)
#50481D
Tritanopia (blue-blind)
#304E45
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #305118;
/* rgb */ color: rgb(48, 81, 24);
/* oklch */ color: oklch(39.6% 0.093 134.4);
Tailwind
colors: {
  custom: {
    50: '#6b8258',
    500: '#305118',
    950: '#000000',
  },
}
SCSS
$custom: #305118;
$custom-light: #6b8258;
$custom-dark: #000000;
JSON
{
  "hex": "#305118",
  "rgb": {
    "r": 48,
    "g": 81,
    "b": 24
  },
  "hsl": {
    "h": 94.737,
    "s": 54.286,
    "l": 20.588
  },
  "oklch": {
    "l": 0.39581,
    "c": 0.09287,
    "h": 134.4
  },
  "luminance": 0.06579
}

Semantic roles & 50–950 ramp

primary
#305118
secondary
#683D88
accent
#4ADEA0
background
#F6F7F5
surface
#EBEEE9
border
#C6C9C5
text
#070A03
muted
#7A7C78

Preview Lab

Preview with #305118

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

Preview Lab → · Contrast checker → · Palette generator →

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