#1F8915#1F8915

#1F8915 is a mid, vivid green. Relative luminance 0.182; OKLCH L 55.1% C 0.174 H 141.9°. Best body text is #000000 at 4.65:1 contrast (WCAG AA passes).

Color values

HEX#1F8915
RGBrgb(31, 137, 21)
HSLhsl(115, 73%, 31%)
HSVhsv(115, 85%, 54%)
CMYKcmyk(77.4%, 0%, 84.7%, 46.3%)
CIE-LABlab(49.78, -50.32, 48.51)
CIE-LCHlch(49.78, 69.90, 136.05°)
OKLaboklab(55.07% -0.137 0.1073)
OKLCHoklch(55.07% 0.174 141.9)
XYZxyz(9.6455, 18.2357, 3.7208)
Luminance0.1824 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F8915 #7F1589
analogous
#598915 #1F8915 #158945
triadic
#1F8915 #151F89 #89151F
tetradic
#1F8915 #155989 #7F1589 #894515
square
#1F8915 #155989 #7F1589 #894515
split-complementary
#1F8915 #451589 #891559
monochromatic
#071F05 #13540D #1F8915 #2BBE1D #46E038

Accessibility & contrast

On white

4.52
#1F8915 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.65
#1F8915 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #1F8915
4.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F8915#FFFFFF#000000##000000
##1F89151.004.524.654.65
#FFFFFF4.521.0021.0021.00
#0000004.6521.001.001.00
##0000004.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#8C7B00
Deuteranopia (green-blind)
#817324
Tritanopia (blue-blind)
#008574
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #1f8915;
/* rgb */ color: rgb(31, 137, 21);
/* oklch */ color: oklch(55.1% 0.174 141.9);
Tailwind
colors: {
  custom: {
    50: '#6fac5e',
    500: '#1f8915',
    950: '#000000',
  },
}
SCSS
$custom: #1f8915;
$custom-light: #6fac5e;
$custom-dark: #000000;
JSON
{
  "hex": "#1f8915",
  "rgb": {
    "r": 31,
    "g": 137,
    "b": 21
  },
  "hsl": {
    "h": 114.828,
    "s": 73.418,
    "l": 30.98
  },
  "oklch": {
    "l": 0.55065,
    "c": 0.17404,
    "h": 141.9
  },
  "luminance": 0.18237
}

Semantic roles & 50–950 ramp

primary
#1F8915
secondary
#B23DBD
accent
#38F0E0
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#081005
muted
#7B7F79

Preview Lab

Preview with #1F8915

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

Preview Lab → · Contrast checker → · Palette generator →

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