#307F2F#307F2F

#307F2F is a mid, vivid green. Relative luminance 0.160; OKLCH L 52.9% C 0.139 H 143.1°. Best body text is #FFFFFF at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#307F2F
RGBrgb(48, 127, 47)
HSLhsl(119, 46%, 34%)
HSVhsv(119, 63%, 50%)
CMYKcmyk(62.2%, 0%, 63%, 50.2%)
CIE-LABlab(46.99, -40.93, 35.63)
CIE-LCHlch(46.99, 54.27, 138.96°)
OKLaboklab(52.94% -0.1112 0.0835)
OKLCHoklch(52.94% 0.139 143.1)
XYZxyz(9.3209, 16.0115, 5.2881)
Luminance0.1601 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#307F2F #7E2F7F
analogous
#587F2F #307F2F #2F7F56
triadic
#307F2F #2F307F #7F2F30
tetradic
#307F2F #2F587F #7E2F7F #7F562F
square
#307F2F #2F587F #7E2F7F #7F562F
split-complementary
#307F2F #562F7F #7F2F58
monochromatic
#0E260E #1F521E #307F2F #41AC40 #64C563

Accessibility & contrast

On white

5.00
#307F2F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.20
#307F2F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #307F2F
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##307F2F#FFFFFF#000000##FFFFFF
##307F2F1.005.004.205.00
#FFFFFF5.001.0021.001.00
#0000004.2021.001.0021.00
##FFFFFF5.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#827426
Deuteranopia (green-blind)
#786D36
Tritanopia (blue-blind)
#227B6E
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #307f2f;
/* rgb */ color: rgb(48, 127, 47);
/* oklch */ color: oklch(52.9% 0.139 143.1);
Tailwind
colors: {
  custom: {
    50: '#72a56b',
    500: '#307f2f',
    950: '#000000',
  },
}
SCSS
$custom: #307f2f;
$custom-light: #72a56b;
$custom-dark: #000000;
JSON
{
  "hex": "#307f2f",
  "rgb": {
    "r": 48,
    "g": 127,
    "b": 47
  },
  "hsl": {
    "h": 119.25,
    "s": 45.977,
    "l": 34.118
  },
  "oklch": {
    "l": 0.52935,
    "c": 0.13911,
    "h": 143.1
  },
  "luminance": 0.16012
}

Semantic roles & 50–950 ramp

primary
#307F2F
secondary
#AB5EAC
accent
#52D6D4
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#080F07
muted
#7B7F7A

Preview Lab

Preview with #307F2F

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

Preview Lab → · Contrast checker → · Palette generator →

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