#1F7E30#1F7E30

#1F7E30 is a mid, vivid green. Relative luminance 0.154; OKLCH L 52.2% C 0.143 H 145.9°. Best body text is #FFFFFF at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#1F7E30
RGBrgb(31, 126, 48)
HSLhsl(131, 61%, 31%)
HSVhsv(131, 75%, 49%)
CMYKcmyk(75.4%, 0%, 61.9%, 50.6%)
CIE-LABlab(46.21, -44.04, 34.14)
CIE-LCHlch(46.21, 55.72, 142.22°)
OKLaboklab(52.17% -0.1188 0.0805)
OKLCHoklch(52.17% 0.143 145.9)
XYZxyz(8.5588, 15.4254, 5.3221)
Luminance0.1543 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7E30 #7E1F6D
analogous
#3D7E1F #1F7E30 #1F7E5F
triadic
#1F7E30 #301F7E #7E301F
tetradic
#1F7E30 #1F3D7E #7E1F6D #7E5F1F
square
#1F7E30 #1F3D7E #7E1F6D #7E5F1F
split-complementary
#1F7E30 #5F1F7E #7E1F3D
monochromatic
#071C0B #134D1D #1F7E30 #2BAF43 #46D15F

Accessibility & contrast

On white

5.14
#1F7E30 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.09
#1F7E30 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F7E30
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F7E30#FFFFFF#000000##FFFFFF
##1F7E301.005.144.095.14
#FFFFFF5.141.0021.001.00
#0000004.0921.001.0021.00
##FFFFFF5.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#807228
Deuteranopia (green-blind)
#756A36
Tritanopia (blue-blind)
#007B6D
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #1f7e30;
/* rgb */ color: rgb(31, 126, 48);
/* oklch */ color: oklch(52.2% 0.143 145.9);
Tailwind
colors: {
  custom: {
    50: '#6aa46b',
    500: '#1f7e30',
    950: '#000000',
  },
}
SCSS
$custom: #1f7e30;
$custom-light: #6aa46b;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7e30",
  "rgb": {
    "r": 31,
    "g": 126,
    "b": 48
  },
  "hsl": {
    "h": 130.737,
    "s": 60.51,
    "l": 30.784
  },
  "oklch": {
    "l": 0.52167,
    "c": 0.14347,
    "h": 145.9
  },
  "luminance": 0.15426
}

Semantic roles & 50–950 ramp

primary
#1F7E30
secondary
#B1489E
accent
#44C7E4
background
#F6FAF6
surface
#ECF4EB
border
#C7CEC6
text
#070F07
muted
#7A7F7A

Preview Lab

Preview with #1F7E30

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

Preview Lab → · Contrast checker → · Palette generator →

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