#305312#305312

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

Color values

HEX#305312
RGBrgb(48, 83, 18)
HSLhsl(92, 64%, 20%)
HSVhsv(92, 78%, 33%)
CMYKcmyk(42.2%, 0%, 78.3%, 67.5%)
CIE-LABlab(31.48, -24.84, 32.24)
CIE-LCHlch(31.48, 40.71, 127.61°)
OKLaboklab(40.1% -0.0696 0.0726)
OKLCHoklch(40.1% 0.101 133.8)
XYZxyz(4.4213, 6.8584, 1.6630)
Luminance0.0686 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#305312 #351253
analogous
#505312 #305312 #125315
triadic
#305312 #123053 #531230
tetradic
#305312 #125053 #351253 #531512
square
#305312 #125053 #351253 #531512
split-complementary
#305312 #151253 #531250
monochromatic
#0F1905 #132107 #305312 #4D851D #6AB828

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##305312#FFFFFF#000000##FFFFFF
##3053121.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)
#574C07
Deuteranopia (green-blind)
#524918
Tritanopia (blue-blind)
#304F46
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #305312;
/* rgb */ color: rgb(48, 83, 18);
/* oklch */ color: oklch(40.1% 0.101 133.8);
Tailwind
colors: {
  custom: {
    50: '#6c8355',
    500: '#305312',
    950: '#000000',
  },
}
SCSS
$custom: #305312;
$custom-light: #6c8355;
$custom-dark: #000000;
JSON
{
  "hex": "#305312",
  "rgb": {
    "r": 48,
    "g": 83,
    "b": 18
  },
  "hsl": {
    "h": 92.308,
    "s": 64.356,
    "l": 19.804
  },
  "oklch": {
    "l": 0.40099,
    "c": 0.10063,
    "h": 133.8
  },
  "luminance": 0.06859
}

Semantic roles & 50–950 ramp

primary
#305312
secondary
#64358C
accent
#40E79A
background
#F6F8F5
surface
#ECEFE9
border
#C7CAC5
text
#070A03
muted
#7A7C78

Preview Lab

Preview with #305312

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

Preview Lab → · Contrast checker → · Palette generator →

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