#1F8928#1F8928

#1F8928 is a mid, vivid green. Relative luminance 0.183; OKLCH L 55.2% C 0.163 H 144.0°. Best body text is #000000 at 4.67:1 contrast (WCAG AA passes).

Color values

HEX#1F8928
RGBrgb(31, 137, 40)
HSLhsl(125, 63%, 33%)
HSVhsv(125, 77%, 54%)
CMYKcmyk(77.4%, 0%, 70.8%, 46.3%)
CIE-LABlab(49.90, -48.85, 41.88)
CIE-LCHlch(49.90, 64.35, 139.39°)
OKLaboklab(55.2% -0.1322 0.0961)
OKLCHoklch(55.2% 0.163 144)
XYZxyz(9.8931, 18.3347, 5.0246)
Luminance0.1834 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F8928 #891F80
analogous
#4B891F #1F8928 #1F895D
triadic
#1F8928 #281F89 #89281F
tetradic
#1F8928 #1F4B89 #891F80 #895D1F
square
#1F8928 #1F4B89 #891F80 #895D1F
split-complementary
#1F8928 #5D1F89 #891F4B
monochromatic
#08250B #145719 #1F8928 #2ABB37 #4CD658

Accessibility & contrast

On white

4.50
#1F8928 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.67
#1F8928 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #1F8928
4.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F8928#FFFFFF#000000##000000
##1F89281.004.504.674.67
#FFFFFF4.501.0021.0021.00
#0000004.6721.001.001.00
##0000004.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#8C7C1A
Deuteranopia (green-blind)
#807431
Tritanopia (blue-blind)
#008575
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #1f8928;
/* rgb */ color: rgb(31, 137, 40);
/* oklch */ color: oklch(55.2% 0.163 144.0);
Tailwind
colors: {
  custom: {
    50: '#6eac67',
    500: '#1f8928',
    950: '#000000',
  },
}
SCSS
$custom: #1f8928;
$custom-light: #6eac67;
$custom-dark: #000000;
JSON
{
  "hex": "#1f8928",
  "rgb": {
    "r": 31,
    "g": 137,
    "b": 40
  },
  "hsl": {
    "h": 125.094,
    "s": 63.095,
    "l": 32.941
  },
  "oklch": {
    "l": 0.55202,
    "c": 0.1634,
    "h": 144
  },
  "luminance": 0.18336
}

Semantic roles & 50–950 ramp

primary
#1F8928
secondary
#B94BB0
accent
#42D8E6
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#081006
muted
#7B7F7A

Preview Lab

Preview with #1F8928

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

Preview Lab → · Contrast checker → · Palette generator →

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