#1F8A27#1F8A27

#1F8A27 is a mid, vivid green. Relative luminance 0.186; OKLCH L 55.5% C 0.165 H 143.8°. Best body text is #000000 at 4.72:1 contrast (WCAG AA passes).

Color values

HEX#1F8A27
RGBrgb(31, 138, 39)
HSLhsl(124, 63%, 33%)
HSVhsv(124, 78%, 54%)
CMYKcmyk(77.5%, 0%, 71.7%, 45.9%)
CIE-LABlab(50.23, -49.29, 42.65)
CIE-LCHlch(50.23, 65.18, 139.13°)
OKLaboklab(55.48% -0.1334 0.0976)
OKLCHoklch(55.48% 0.165 143.8)
XYZxyz(10.0191, 18.6136, 4.9838)
Luminance0.1862 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F8A27 #8A1F82
analogous
#4C8A1F #1F8A27 #1F8A5C
triadic
#1F8A27 #271F8A #8A271F
tetradic
#1F8A27 #1F4C8A #8A1F82 #8A5C1F
square
#1F8A27 #1F4C8A #8A1F82 #8A5C1F
split-complementary
#1F8A27 #5C1F8A #8A1F4C
monochromatic
#09260B #145819 #1F8A27 #2ABC35 #4CD757

Accessibility & contrast

On white

4.45
#1F8A27 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.72
#1F8A27 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #1F8A27
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F8A27#FFFFFF#000000##000000
##1F8A271.004.454.724.72
#FFFFFF4.451.0021.0021.00
#0000004.7221.001.001.00
##0000004.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#8D7D18
Deuteranopia (green-blind)
#817431
Tritanopia (blue-blind)
#008676
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #1f8a27;
/* rgb */ color: rgb(31, 138, 39);
/* oklch */ color: oklch(55.5% 0.165 143.8);
Tailwind
colors: {
  custom: {
    50: '#6ead67',
    500: '#1f8a27',
    950: '#000000',
  },
}
SCSS
$custom: #1f8a27;
$custom-light: #6ead67;
$custom-dark: #000000;
JSON
{
  "hex": "#1f8a27",
  "rgb": {
    "r": 31,
    "g": 138,
    "b": 39
  },
  "hsl": {
    "h": 124.486,
    "s": 63.314,
    "l": 33.137
  },
  "oklch": {
    "l": 0.55476,
    "c": 0.16528,
    "h": 143.8
  },
  "luminance": 0.18615
}

Semantic roles & 50–950 ramp

primary
#1F8A27
secondary
#BA4BB1
accent
#41DAE6
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#081006
muted
#7B7F7A

Preview Lab

Preview with #1F8A27

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

Preview Lab → · Contrast checker → · Palette generator →

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