#1F8229#1F8229

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

Color values

HEX#1F8229
RGBrgb(31, 130, 41)
HSLhsl(126, 61%, 32%)
HSVhsv(126, 76%, 51%)
CMYKcmyk(76.2%, 0%, 68.5%, 49%)
CIE-LABlab(47.52, -46.32, 38.88)
CIE-LCHlch(47.52, 60.48, 139.99°)
OKLaboklab(53.23% -0.1252 0.0899)
OKLCHoklch(53.23% 0.154 144.3)
XYZxyz(8.9473, 16.4156, 4.7944)
Luminance0.1642 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F8229 #821F78
analogous
#47821F #1F8229 #1F825B
triadic
#1F8229 #291F82 #82291F
tetradic
#1F8229 #1F4782 #821F78 #825B1F
square
#1F8229 #1F4782 #821F78 #825B1F
split-complementary
#1F8229 #5B1F82 #821F47
monochromatic
#071F0A #135119 #1F8229 #2BB339 #48D356

Accessibility & contrast

On white

4.90
#1F8229 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #1F8229
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F8229#FFFFFF#000000##FFFFFF
##1F82291.004.904.284.90
#FFFFFF4.901.0021.001.00
#0000004.2821.001.0021.00
##FFFFFF4.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#84751D
Deuteranopia (green-blind)
#796E31
Tritanopia (blue-blind)
#007E70
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #1f8229;
/* rgb */ color: rgb(31, 130, 41);
/* oklch */ color: oklch(53.2% 0.154 144.3);
Tailwind
colors: {
  custom: {
    50: '#6ca767',
    500: '#1f8229',
    950: '#000000',
  },
}
SCSS
$custom: #1f8229;
$custom-light: #6ca767;
$custom-dark: #000000;
JSON
{
  "hex": "#1f8229",
  "rgb": {
    "r": 31,
    "g": 130,
    "b": 41
  },
  "hsl": {
    "h": 126.061,
    "s": 61.491,
    "l": 31.569
  },
  "oklch": {
    "l": 0.53226,
    "c": 0.15416,
    "h": 144.3
  },
  "luminance": 0.16417
}

Semantic roles & 50–950 ramp

primary
#1F8229
secondary
#B548AA
accent
#43D4E5
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#081006
muted
#7B7F7A

Preview Lab

Preview with #1F8229

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

Preview Lab → · Contrast checker → · Palette generator →

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