#1F8018#1F8018

#1F8018 is a mid, vivid green. Relative luminance 0.158; OKLCH L 52.5% C 0.163 H 142.1°. Best body text is #FFFFFF at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#1F8018
RGBrgb(31, 128, 24)
HSLhsl(116, 68%, 30%)
HSVhsv(116, 81%, 50%)
CMYKcmyk(75.8%, 0%, 81.3%, 49.8%)
CIE-LABlab(46.70, -47.13, 44.72)
CIE-LCHlch(46.70, 64.97, 136.51°)
OKLaboklab(52.51% -0.1283 0.0998)
OKLCHoklch(52.51% 0.163 142.1)
XYZxyz(8.4486, 15.7946, 3.4674)
Luminance0.1580 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F8018 #791880
analogous
#538018 #1F8018 #188045
triadic
#1F8018 #181F80 #80181F
tetradic
#1F8018 #185380 #791880 #804518
square
#1F8018 #185380 #791880 #804518
split-complementary
#1F8018 #451880 #801853
monochromatic
#061A05 #134C0E #1F8018 #2BB422 #43DA39

Accessibility & contrast

On white

5.05
#1F8018 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.16
#1F8018 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F8018
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F8018#FFFFFF#000000##FFFFFF
##1F80181.005.054.165.05
#FFFFFF5.051.0021.001.00
#0000004.1621.001.0021.00
##FFFFFF5.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#837300
Deuteranopia (green-blind)
#786C24
Tritanopia (blue-blind)
#007C6D
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #1f8018;
/* rgb */ color: rgb(31, 128, 24);
/* oklch */ color: oklch(52.5% 0.163 142.1);
Tailwind
colors: {
  custom: {
    50: '#6ca65e',
    500: '#1f8018',
    950: '#000000',
  },
}
SCSS
$custom: #1f8018;
$custom-light: #6ca65e;
$custom-dark: #000000;
JSON
{
  "hex": "#1f8018",
  "rgb": {
    "r": 31,
    "g": 128,
    "b": 24
  },
  "hsl": {
    "h": 115.962,
    "s": 68.421,
    "l": 29.804
  },
  "oklch": {
    "l": 0.52513,
    "c": 0.16253,
    "h": 142.1
  },
  "luminance": 0.15796
}

Semantic roles & 50–950 ramp

primary
#1F8018
secondary
#AC40B4
accent
#3DEBE0
background
#F7FAF5
surface
#EDF4E9
border
#C8CEC5
text
#080F05
muted
#7B7F79

Preview Lab

Preview with #1F8018

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

Preview Lab → · Contrast checker → · Palette generator →

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