#1F8D52#1F8D52

#1F8D52 is a mid, vivid green. Relative luminance 0.200; OKLCH L 56.9% C 0.132 H 154.2°. Best body text is #000000 at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#1F8D52
RGBrgb(31, 141, 82)
HSLhsl(148, 64%, 34%)
HSVhsv(148, 78%, 55%)
CMYKcmyk(78%, 0%, 41.8%, 44.7%)
CIE-LABlab(51.78, -44.05, 23.10)
CIE-LCHlch(51.78, 49.74, 152.33°)
OKLaboklab(56.93% -0.1187 0.0574)
OKLCHoklch(56.93% 0.132 154.2)
XYZxyz(11.6119, 19.9489, 11.2195)
Luminance0.1995 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F8D52 #8D1F5A
analogous
#238D1F #1F8D52 #1F8D89
triadic
#1F8D52 #521F8D #8D521F
tetradic
#1F8D52 #1F238D #8D1F5A #8D891F
square
#1F8D52 #1F238D #8D1F5A #8D891F
split-complementary
#1F8D52 #891F8D #8D1F23
monochromatic
#092918 #145B35 #1F8D52 #2ABF6F #4ED88E

Accessibility & contrast

On white

4.21
#1F8D52 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.99
#1F8D52 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #1F8D52
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F8D52#FFFFFF#000000##000000
##1F8D521.004.214.994.99
#FFFFFF4.211.0021.0021.00
#0000004.9921.001.001.00
##0000004.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#8D814E
Deuteranopia (green-blind)
#807856
Tritanopia (blue-blind)
#008B7E
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #1f8d52;
/* rgb */ color: rgb(31, 141, 82);
/* oklch */ color: oklch(56.9% 0.132 154.2);
Tailwind
colors: {
  custom: {
    50: '#6daf83',
    500: '#1f8d52',
    950: '#000000',
  },
}
SCSS
$custom: #1f8d52;
$custom-light: #6daf83;
$custom-dark: #000000;
JSON
{
  "hex": "#1f8d52",
  "rgb": {
    "r": 31,
    "g": 141,
    "b": 82
  },
  "hsl": {
    "h": 147.818,
    "s": 63.953,
    "l": 33.725
  },
  "oklch": {
    "l": 0.56931,
    "c": 0.13181,
    "h": 154.2
  },
  "luminance": 0.1995
}

Semantic roles & 50–950 ramp

primary
#1F8D52
secondary
#BB4D88
accent
#419AE7
background
#F7FAF8
surface
#EDF5EF
border
#C8CFCA
text
#08100A
muted
#7B7F7C

Preview Lab

Preview with #1F8D52

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

Preview Lab → · Contrast checker → · Palette generator →

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