#1F8A52#1F8A52

#1F8A52 is a mid, vivid green. Relative luminance 0.191; OKLCH L 56.1% C 0.128 H 154.9°. Best body text is #000000 at 4.82:1 contrast (WCAG AA passes).

Color values

HEX#1F8A52
RGBrgb(31, 138, 82)
HSLhsl(149, 63%, 33%)
HSVhsv(149, 78%, 54%)
CMYKcmyk(77.5%, 0%, 40.6%, 45.9%)
CIE-LABlab(50.78, -42.88, 21.77)
CIE-LCHlch(50.78, 48.09, 153.08°)
OKLaboklab(56.1% -0.1156 0.0543)
OKLCHoklch(56.1% 0.128 154.9)
XYZxyz(11.1755, 19.0761, 11.0741)
Luminance0.1908 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F8A52 #8A1F57
analogous
#218A1F #1F8A52 #1F8A87
triadic
#1F8A52 #521F8A #8A521F
tetradic
#1F8A52 #1F218A #8A1F57 #8A871F
square
#1F8A52 #1F218A #8A1F57 #8A871F
split-complementary
#1F8A52 #871F8A #8A1F21
monochromatic
#092617 #145834 #1F8A52 #2ABC70 #4CD78E

Accessibility & contrast

On white

4.36
#1F8A52 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.82
#1F8A52 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #1F8A52
4.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F8A52#FFFFFF#000000##000000
##1F8A521.004.364.824.82
#FFFFFF4.361.0021.0021.00
#0000004.8221.001.001.00
##0000004.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#8A7E4E
Deuteranopia (green-blind)
#7D7556
Tritanopia (blue-blind)
#00887C
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #1f8a52;
/* rgb */ color: rgb(31, 138, 82);
/* oklch */ color: oklch(56.1% 0.128 154.9);
Tailwind
colors: {
  custom: {
    50: '#6cad83',
    500: '#1f8a52',
    950: '#000000',
  },
}
SCSS
$custom: #1f8a52;
$custom-light: #6cad83;
$custom-dark: #000000;
JSON
{
  "hex": "#1f8a52",
  "rgb": {
    "r": 31,
    "g": 138,
    "b": 82
  },
  "hsl": {
    "h": 148.598,
    "s": 63.314,
    "l": 33.137
  },
  "oklch": {
    "l": 0.56103,
    "c": 0.12771,
    "h": 154.9
  },
  "luminance": 0.19077
}

Semantic roles & 50–950 ramp

primary
#1F8A52
secondary
#BA4B85
accent
#4198E6
background
#F7FAF8
surface
#EDF4EF
border
#C8CECA
text
#08100A
muted
#7B7F7C

Preview Lab

Preview with #1F8A52

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

Preview Lab → · Contrast checker → · Palette generator →

#1F8A52 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva