#1F8E52#1F8E52

#1F8E52 is a mid, vivid green. Relative luminance 0.202; OKLCH L 57.2% C 0.133 H 154.0°. Best body text is #000000 at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#1F8E52
RGBrgb(31, 142, 82)
HSLhsl(148, 64%, 34%)
HSVhsv(148, 78%, 56%)
CMYKcmyk(78.2%, 0%, 42.3%, 44.3%)
CIE-LABlab(52.11, -44.44, 23.54)
CIE-LCHlch(52.11, 50.29, 152.10°)
OKLaboklab(57.21% -0.1197 0.0584)
OKLCHoklch(57.21% 0.133 154)
XYZxyz(11.7600, 20.2451, 11.2689)
Luminance0.2025 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F8E52 #8E1F5B
analogous
#238E1F #1F8E52 #1F8E8A
triadic
#1F8E52 #521F8E #8E521F
tetradic
#1F8E52 #1F238E #8E1F5B #8E8A1F
square
#1F8E52 #1F238E #8E1F5B #8E8A1F
split-complementary
#1F8E52 #8A1F8E #8E1F23
monochromatic
#092A18 #145C35 #1F8E52 #2AC06F #4FD98E

Accessibility & contrast

On white

4.16
#1F8E52 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.05
#1F8E52 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #1F8E52
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F8E52#FFFFFF#000000##000000
##1F8E521.004.165.055.05
#FFFFFF4.161.0021.0021.00
#0000005.0521.001.001.00
##0000005.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#8E824E
Deuteranopia (green-blind)
#817956
Tritanopia (blue-blind)
#008C7F
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #1f8e52;
/* rgb */ color: rgb(31, 142, 82);
/* oklch */ color: oklch(57.2% 0.133 154.0);
Tailwind
colors: {
  custom: {
    50: '#6db083',
    500: '#1f8e52',
    950: '#000000',
  },
}
SCSS
$custom: #1f8e52;
$custom-light: #6db083;
$custom-dark: #000000;
JSON
{
  "hex": "#1f8e52",
  "rgb": {
    "r": 31,
    "g": 142,
    "b": 82
  },
  "hsl": {
    "h": 147.568,
    "s": 64.162,
    "l": 33.922
  },
  "oklch": {
    "l": 0.57207,
    "c": 0.13318,
    "h": 154
  },
  "luminance": 0.20247
}

Semantic roles & 50–950 ramp

primary
#1F8E52
secondary
#BB4D89
accent
#419BE7
background
#F7FAF8
surface
#EDF5EF
border
#C8CFCA
text
#08110A
muted
#7B807C

Preview Lab

Preview with #1F8E52

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

Preview Lab → · Contrast checker → · Palette generator →

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