#307F21#307F21

#307F21 is a mid, vivid green. Relative luminance 0.159; OKLCH L 52.8% C 0.150 H 140.8°. Best body text is #FFFFFF at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#307F21
RGBrgb(48, 127, 33)
HSLhsl(110, 59%, 31%)
HSVhsv(110, 74%, 50%)
CMYKcmyk(62.2%, 0%, 74%, 50.2%)
CIE-LABlab(46.86, -42.38, 41.72)
CIE-LCHlch(46.86, 59.47, 135.44°)
OKLaboklab(52.79% -0.116 0.0947)
OKLCHoklch(52.79% 0.15 140.8)
XYZxyz(9.0824, 15.9161, 4.0320)
Luminance0.1592 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#307F21 #70217F
analogous
#5F7F21 #307F21 #217F41
triadic
#307F21 #21307F #7F2130
tetradic
#307F21 #215F7F #70217F #7F4121
square
#307F21 #215F7F #70217F #7F4121
split-complementary
#307F21 #41217F #7F215F
monochromatic
#0B1E08 #1E4E14 #307F21 #42B02E #60D04A

Accessibility & contrast

On white

5.02
#307F21 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.18
#307F21 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #307F21
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##307F21#FFFFFF#000000##FFFFFF
##307F211.005.024.185.02
#FFFFFF5.021.0021.001.00
#0000004.1821.001.0021.00
##FFFFFF5.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#827311
Deuteranopia (green-blind)
#796D2A
Tritanopia (blue-blind)
#257B6D
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #307f21;
/* rgb */ color: rgb(48, 127, 33);
/* oklch */ color: oklch(52.8% 0.150 140.8);
Tailwind
colors: {
  custom: {
    50: '#72a562',
    500: '#307f21',
    950: '#000000',
  },
}
SCSS
$custom: #307f21;
$custom-light: #72a562;
$custom-dark: #000000;
JSON
{
  "hex": "#307f21",
  "rgb": {
    "r": 48,
    "g": 127,
    "b": 33
  },
  "hsl": {
    "h": 110.426,
    "s": 58.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.52791,
    "c": 0.14973,
    "h": 140.8
  },
  "luminance": 0.15917
}

Semantic roles & 50–950 ramp

primary
#307F21
secondary
#A14AB2
accent
#46E2C9
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#090F05
muted
#7B7F7A

Preview Lab

Preview with #307F21

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

Preview Lab → · Contrast checker → · Palette generator →

#307F21 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva