#1F8227#1F8227

#1F8227 is a mid, vivid green. Relative luminance 0.164; OKLCH L 53.2% C 0.156 H 144.0°. Best body text is #FFFFFF at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#1F8227
RGBrgb(31, 130, 39)
HSLhsl(125, 61%, 32%)
HSVhsv(125, 76%, 51%)
CMYKcmyk(76.2%, 0%, 70%, 49%)
CIE-LABlab(47.50, -46.53, 39.75)
CIE-LCHlch(47.50, 61.20, 139.50°)
OKLaboklab(53.21% -0.1259 0.0915)
OKLCHoklch(53.21% 0.156 144)
XYZxyz(8.9133, 16.4020, 4.6152)
Luminance0.1640 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F8227 #821F7A
analogous
#49821F #1F8227 #1F8259
triadic
#1F8227 #271F82 #82271F
tetradic
#1F8227 #1F4982 #821F7A #82591F
square
#1F8227 #1F4982 #821F7A #82591F
split-complementary
#1F8227 #591F82 #821F49
monochromatic
#071F09 #135118 #1F8227 #2BB336 #48D353

Accessibility & contrast

On white

4.91
#1F8227 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.28
#1F8227 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F8227
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F8227#FFFFFF#000000##FFFFFF
##1F82271.004.914.284.91
#FFFFFF4.911.0021.001.00
#0000004.2821.001.0021.00
##FFFFFF4.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#85751A
Deuteranopia (green-blind)
#796E30
Tritanopia (blue-blind)
#007E70
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #1f8227;
/* rgb */ color: rgb(31, 130, 39);
/* oklch */ color: oklch(53.2% 0.156 144.0);
Tailwind
colors: {
  custom: {
    50: '#6ca766',
    500: '#1f8227',
    950: '#000000',
  },
}
SCSS
$custom: #1f8227;
$custom-light: #6ca766;
$custom-dark: #000000;
JSON
{
  "hex": "#1f8227",
  "rgb": {
    "r": 31,
    "g": 130,
    "b": 39
  },
  "hsl": {
    "h": 124.848,
    "s": 61.491,
    "l": 31.569
  },
  "oklch": {
    "l": 0.53205,
    "c": 0.15564,
    "h": 144
  },
  "luminance": 0.16403
}

Semantic roles & 50–950 ramp

primary
#1F8227
secondary
#B548AC
accent
#43D8E5
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#081006
muted
#7B7F7A

Preview Lab

Preview with #1F8227

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

Preview Lab → · Contrast checker → · Palette generator →

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