#308312#308312

#308312 is a mid, vivid green. Relative luminance 0.169; OKLCH L 53.8% C 0.163 H 139.5°. Best body text is #FFFFFF at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#308312
RGBrgb(48, 131, 18)
HSLhsl(104, 76%, 29%)
HSVhsv(104, 86%, 51%)
CMYKcmyk(63.4%, 0%, 86.3%, 48.6%)
CIE-LABlab(48.14, -44.88, 47.99)
CIE-LCHlch(48.14, 65.71, 133.08°)
OKLaboklab(53.82% -0.1235 0.1056)
OKLCHoklch(53.82% 0.163 139.5)
XYZxyz(9.4440, 16.9038, 3.3372)
Luminance0.1691 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#308312 #651283
analogous
#698312 #308312 #12832D
triadic
#308312 #123083 #831230
tetradic
#308312 #126983 #651283 #832D12
square
#308312 #126983 #651283 #832D12
split-complementary
#308312 #2D1283 #831269
monochromatic
#0A1B04 #1C4D0B #308312 #44B919 #5DE22D

Accessibility & contrast

On white

4.79
#308312 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.38
#308312 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #308312
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##308312#FFFFFF#000000##FFFFFF
##3083121.004.794.384.79
#FFFFFF4.791.0021.001.00
#0000004.3821.001.0021.00
##FFFFFF4.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#877600
Deuteranopia (green-blind)
#7D7021
Tritanopia (blue-blind)
#257E6F
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #308312;
/* rgb */ color: rgb(48, 131, 18);
/* oklch */ color: oklch(53.8% 0.163 139.5);
Tailwind
colors: {
  custom: {
    50: '#74a85c',
    500: '#308312',
    950: '#000000',
  },
}
SCSS
$custom: #308312;
$custom-light: #74a85c;
$custom-dark: #000000;
JSON
{
  "hex": "#308312",
  "rgb": {
    "r": 48,
    "g": 131,
    "b": 18
  },
  "hsl": {
    "h": 104.071,
    "s": 75.839,
    "l": 29.216
  },
  "oklch": {
    "l": 0.53818,
    "c": 0.16252,
    "h": 139.5
  },
  "luminance": 0.16905
}

Semantic roles & 50–950 ramp

primary
#308312
secondary
#9638B8
accent
#35F2C0
background
#F7FAF5
surface
#EDF4E9
border
#C8CEC5
text
#091005
muted
#7B7F79

Preview Lab

Preview with #308312

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

Preview Lab → · Contrast checker → · Palette generator →

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