#1F8538#1F8538

#1F8538 is a mid, vivid green. Relative luminance 0.174; OKLCH L 54.3% C 0.146 H 147.2°. Best body text is #FFFFFF at 4.70:1 contrast (WCAG AA passes).

Color values

HEX#1F8538
RGBrgb(31, 133, 56)
HSLhsl(135, 62%, 32%)
HSVhsv(135, 77%, 52%)
CMYKcmyk(76.7%, 0%, 57.9%, 47.8%)
CIE-LABlab(48.70, -45.49, 33.06)
CIE-LCHlch(48.70, 56.24, 143.99°)
OKLaboklab(54.26% -0.1224 0.0788)
OKLCHoklch(54.26% 0.146 147.2)
XYZxyz(9.6657, 17.3508, 6.5802)
Luminance0.1735 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F8538 #851F6C
analogous
#39851F #1F8538 #1F856B
triadic
#1F8538 #381F85 #85381F
tetradic
#1F8538 #1F3985 #851F6C #856B1F
square
#1F8538 #1F3985 #851F6C #856B1F
split-complementary
#1F8538 #6B1F85 #851F39
monochromatic
#08220E #135323 #1F8538 #2BB74D #4AD56C

Accessibility & contrast

On white

4.70
#1F8538 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.47
#1F8538 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F8538
4.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F8538#FFFFFF#000000##FFFFFF
##1F85381.004.704.474.70
#FFFFFF4.701.0021.001.00
#0000004.4721.001.0021.00
##FFFFFF4.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#877931
Deuteranopia (green-blind)
#7B703E
Tritanopia (blue-blind)
#008274
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #1f8538;
/* rgb */ color: rgb(31, 133, 56);
/* oklch */ color: oklch(54.3% 0.146 147.2);
Tailwind
colors: {
  custom: {
    50: '#6ca971',
    500: '#1f8538',
    950: '#000000',
  },
}
SCSS
$custom: #1f8538;
$custom-light: #6ca971;
$custom-dark: #000000;
JSON
{
  "hex": "#1f8538",
  "rgb": {
    "r": 31,
    "g": 133,
    "b": 56
  },
  "hsl": {
    "h": 134.706,
    "s": 62.195,
    "l": 32.157
  },
  "oklch": {
    "l": 0.54258,
    "c": 0.14562,
    "h": 147.2
  },
  "luminance": 0.17352
}

Semantic roles & 50–950 ramp

primary
#1F8538
secondary
#B7499C
accent
#43BDE5
background
#F7FAF6
surface
#EDF4EC
border
#C8CEC7
text
#081008
muted
#7B7F7B

Preview Lab

Preview with #1F8538

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

Preview Lab → · Contrast checker → · Palette generator →

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