#1F8528#1F8528

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

Color values

HEX#1F8528
RGBrgb(31, 133, 40)
HSLhsl(125, 62%, 32%)
HSVhsv(125, 77%, 52%)
CMYKcmyk(76.7%, 0%, 69.9%, 47.8%)
CIE-LABlab(48.53, -47.47, 40.43)
CIE-LCHlch(48.53, 62.35, 139.59°)
OKLaboklab(54.07% -0.1284 0.093)
OKLCHoklch(54.07% 0.159 144.1)
XYZxyz(9.3350, 17.2185, 4.8386)
Luminance0.1722 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F8528 #851F7C
analogous
#49851F #1F8528 #1F855B
triadic
#1F8528 #281F85 #85281F
tetradic
#1F8528 #1F4985 #851F7C #855B1F
square
#1F8528 #1F4985 #851F7C #855B1F
split-complementary
#1F8528 #5B1F85 #851F49
monochromatic
#08220A #135319 #1F8528 #2BB737 #4AD556

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##1F8528#FFFFFF#000000##FFFFFF
##1F85281.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)
#88781B
Deuteranopia (green-blind)
#7C7031
Tritanopia (blue-blind)
#008172
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #1f8528;
/* rgb */ color: rgb(31, 133, 40);
/* oklch */ color: oklch(54.1% 0.159 144.1);
Tailwind
colors: {
  custom: {
    50: '#6daa67',
    500: '#1f8528',
    950: '#000000',
  },
}
SCSS
$custom: #1f8528;
$custom-light: #6daa67;
$custom-dark: #000000;
JSON
{
  "hex": "#1f8528",
  "rgb": {
    "r": 31,
    "g": 133,
    "b": 40
  },
  "hsl": {
    "h": 125.294,
    "s": 62.195,
    "l": 32.157
  },
  "oklch": {
    "l": 0.54069,
    "c": 0.15857,
    "h": 144.1
  },
  "luminance": 0.1722
}

Semantic roles & 50–950 ramp

primary
#1F8528
secondary
#B749AD
accent
#43D7E5
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#081006
muted
#7B7F7A

Preview Lab

Preview with #1F8528

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

Preview Lab → · Contrast checker → · Palette generator →

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