#1F8522#1F8522

#1F8522 is a mid, vivid green. Relative luminance 0.172; OKLCH L 54.0% C 0.163 H 143.2°. Best body text is #FFFFFF at 4.73:1 contrast (WCAG AA passes).

Color values

HEX#1F8522
RGBrgb(31, 133, 34)
HSLhsl(122, 62%, 32%)
HSVhsv(122, 77%, 52%)
CMYKcmyk(76.7%, 0%, 74.4%, 47.8%)
CIE-LABlab(48.49, -48.05, 42.85)
CIE-LCHlch(48.49, 64.38, 138.27°)
OKLaboklab(54.01% -0.1303 0.0973)
OKLCHoklch(54.01% 0.163 143.2)
XYZxyz(9.2408, 17.1808, 4.3423)
Luminance0.1718 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F8522 #851F82
analogous
#4F851F #1F8522 #1F8555
triadic
#1F8522 #221F85 #85221F
tetradic
#1F8522 #1F4F85 #851F82 #85551F
square
#1F8522 #1F4F85 #851F82 #85551F
split-complementary
#1F8522 #551F85 #851F4F
monochromatic
#082209 #135315 #1F8522 #2BB72F #4AD54E

Accessibility & contrast

On white

4.73
#1F8522 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.44
#1F8522 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F8522
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F8522#FFFFFF#000000##FFFFFF
##1F85221.004.734.444.73
#FFFFFF4.731.0021.001.00
#0000004.4421.001.0021.00
##FFFFFF4.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#887811
Deuteranopia (green-blind)
#7C702C
Tritanopia (blue-blind)
#008172
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #1f8522;
/* rgb */ color: rgb(31, 133, 34);
/* oklch */ color: oklch(54.0% 0.163 143.2);
Tailwind
colors: {
  custom: {
    50: '#6daa64',
    500: '#1f8522',
    950: '#000000',
  },
}
SCSS
$custom: #1f8522;
$custom-light: #6daa64;
$custom-dark: #000000;
JSON
{
  "hex": "#1f8522",
  "rgb": {
    "r": 31,
    "g": 133,
    "b": 34
  },
  "hsl": {
    "h": 121.765,
    "s": 62.195,
    "l": 32.157
  },
  "oklch": {
    "l": 0.54014,
    "c": 0.16263,
    "h": 143.2
  },
  "luminance": 0.17182
}

Semantic roles & 50–950 ramp

primary
#1F8522
secondary
#B749B4
accent
#43E0E5
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#081006
muted
#7B7F7A

Preview Lab

Preview with #1F8522

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

Preview Lab → · Contrast checker → · Palette generator →

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