#1F8D27#1F8D27

#1F8D27 is a mid, vivid green. Relative luminance 0.195; OKLCH L 56.3% C 0.169 H 143.8°. Best body text is #000000 at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#1F8D27
RGBrgb(31, 141, 39)
HSLhsl(124, 64%, 34%)
HSVhsv(124, 78%, 55%)
CMYKcmyk(78%, 0%, 72.3%, 44.7%)
CIE-LABlab(51.25, -50.30, 43.72)
CIE-LCHlch(51.25, 66.65, 139.01°)
OKLaboklab(56.32% -0.1362 0.0998)
OKLCHoklch(56.32% 0.169 143.8)
XYZxyz(10.4555, 19.4863, 5.1293)
Luminance0.1949 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F8D27 #8D1F85
analogous
#4E8D1F #1F8D27 #1F8D5E
triadic
#1F8D27 #271F8D #8D271F
tetradic
#1F8D27 #1F4E8D #8D1F85 #8D5E1F
square
#1F8D27 #1F4E8D #8D1F85 #8D5E1F
split-complementary
#1F8D27 #5E1F8D #8D1F4E
monochromatic
#09290B #145B19 #1F8D27 #2ABF35 #4ED858

Accessibility & contrast

On white

4.29
#1F8D27 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.90
#1F8D27 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #1F8D27
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F8D27#FFFFFF#000000##000000
##1F8D271.004.294.904.90
#FFFFFF4.291.0021.0021.00
#0000004.9021.001.001.00
##0000004.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#907F17
Deuteranopia (green-blind)
#847731
Tritanopia (blue-blind)
#008979
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #1f8d27;
/* rgb */ color: rgb(31, 141, 39);
/* oklch */ color: oklch(56.3% 0.169 143.8);
Tailwind
colors: {
  custom: {
    50: '#6faf67',
    500: '#1f8d27',
    950: '#000000',
  },
}
SCSS
$custom: #1f8d27;
$custom-light: #6faf67;
$custom-dark: #000000;
JSON
{
  "hex": "#1f8d27",
  "rgb": {
    "r": 31,
    "g": 141,
    "b": 39
  },
  "hsl": {
    "h": 124.364,
    "s": 63.953,
    "l": 33.725
  },
  "oklch": {
    "l": 0.56322,
    "c": 0.16882,
    "h": 143.8
  },
  "luminance": 0.19488
}

Semantic roles & 50–950 ramp

primary
#1F8D27
secondary
#BB4DB3
accent
#41DBE7
background
#F7FAF6
surface
#EDF5EB
border
#C8CFC6
text
#081006
muted
#7B7F7A

Preview Lab

Preview with #1F8D27

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

Preview Lab → · Contrast checker → · Palette generator →

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