#1F8D25#1F8D25

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

Color values

HEX#1F8D25
RGBrgb(31, 141, 37)
HSLhsl(123, 64%, 34%)
HSVhsv(123, 78%, 55%)
CMYKcmyk(78%, 0%, 73.8%, 44.7%)
CIE-LABlab(51.24, -50.49, 44.50)
CIE-LCHlch(51.24, 67.30, 138.61°)
OKLaboklab(56.31% -0.1368 0.1012)
OKLCHoklch(56.31% 0.17 143.5)
XYZxyz(10.4232, 19.4734, 4.9593)
Luminance0.1948 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F8D25 #8D1F87
analogous
#508D1F #1F8D25 #1F8D5C
triadic
#1F8D25 #251F8D #8D251F
tetradic
#1F8D25 #1F508D #8D1F87 #8D5C1F
square
#1F8D25 #1F508D #8D1F87 #8D5C1F
split-complementary
#1F8D25 #5C1F8D #8D1F50
monochromatic
#09290B #145B18 #1F8D25 #2ABF32 #4ED856

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##1F8D25#FFFFFF#000000##000000
##1F8D251.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)
#907F13
Deuteranopia (green-blind)
#847730
Tritanopia (blue-blind)
#008979
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #1f8d25;
/* rgb */ color: rgb(31, 141, 37);
/* oklch */ color: oklch(56.3% 0.170 143.5);
Tailwind
colors: {
  custom: {
    50: '#6faf66',
    500: '#1f8d25',
    950: '#000000',
  },
}
SCSS
$custom: #1f8d25;
$custom-light: #6faf66;
$custom-dark: #000000;
JSON
{
  "hex": "#1f8d25",
  "rgb": {
    "r": 31,
    "g": 141,
    "b": 37
  },
  "hsl": {
    "h": 123.273,
    "s": 63.953,
    "l": 33.725
  },
  "oklch": {
    "l": 0.56305,
    "c": 0.17011,
    "h": 143.5
  },
  "luminance": 0.19475
}

Semantic roles & 50–950 ramp

primary
#1F8D25
secondary
#BB4DB5
accent
#41DEE7
background
#F7FAF6
surface
#EDF5EB
border
#C8CFC6
text
#091006
muted
#7B7F7A

Preview Lab

Preview with #1F8D25

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

Preview Lab → · Contrast checker → · Palette generator →

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