#1F8D23#1F8D23

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

Color values

HEX#1F8D23
RGBrgb(31, 141, 35)
HSLhsl(122, 64%, 34%)
HSVhsv(122, 78%, 55%)
CMYKcmyk(78%, 0%, 75.2%, 44.7%)
CIE-LABlab(51.22, -50.66, 45.26)
CIE-LCHlch(51.22, 67.93, 138.22°)
OKLaboklab(56.29% -0.1373 0.1025)
OKLCHoklch(56.29% 0.171 143.3)
XYZxyz(10.3927, 19.4612, 4.7984)
Luminance0.1946 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F8D23 #8D1F89
analogous
#528D1F #1F8D23 #1F8D5A
triadic
#1F8D23 #231F8D #8D231F
tetradic
#1F8D23 #1F528D #8D1F89 #8D5A1F
square
#1F8D23 #1F528D #8D1F89 #8D5A1F
split-complementary
#1F8D23 #5A1F8D #8D1F52
monochromatic
#09290A #145B17 #1F8D23 #2ABF2F #4ED853

Accessibility & contrast

On white

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

On black

4.89
#1F8D23 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #1F8D23
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F8D23#FFFFFF#000000##000000
##1F8D231.004.294.894.89
#FFFFFF4.291.0021.0021.00
#0000004.8921.001.001.00
##0000004.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#907F0F
Deuteranopia (green-blind)
#84772E
Tritanopia (blue-blind)
#008978
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #1f8d23;
/* rgb */ color: rgb(31, 141, 35);
/* oklch */ color: oklch(56.3% 0.171 143.3);
Tailwind
colors: {
  custom: {
    50: '#6faf65',
    500: '#1f8d23',
    950: '#000000',
  },
}
SCSS
$custom: #1f8d23;
$custom-light: #6faf65;
$custom-dark: #000000;
JSON
{
  "hex": "#1f8d23",
  "rgb": {
    "r": 31,
    "g": 141,
    "b": 35
  },
  "hsl": {
    "h": 122.182,
    "s": 63.953,
    "l": 33.725
  },
  "oklch": {
    "l": 0.56289,
    "c": 0.17134,
    "h": 143.3
  },
  "luminance": 0.19462
}

Semantic roles & 50–950 ramp

primary
#1F8D23
secondary
#BB4DB7
accent
#41E1E7
background
#F7FAF6
surface
#EDF5EB
border
#C8CFC6
text
#091106
muted
#7B807A

Preview Lab

Preview with #1F8D23

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

Preview Lab → · Contrast checker → · Palette generator →

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