#1F7923#1F7923

#1F7923 is a mid, vivid green. Relative luminance 0.141; OKLCH L 50.6% C 0.147 H 143.6°. Best body text is #FFFFFF at 5.50:1 contrast (WCAG AA passes).

Color values

HEX#1F7923
RGBrgb(31, 121, 35)
HSLhsl(123, 59%, 30%)
HSVhsv(123, 74%, 47%)
CMYKcmyk(74.4%, 0%, 71.1%, 52.5%)
CIE-LABlab(44.36, -43.76, 38.12)
CIE-LCHlch(44.36, 58.04, 138.94°)
OKLaboklab(50.59% -0.1186 0.0875)
OKLCHoklch(50.59% 0.147 143.6)
XYZxyz(7.7053, 14.0865, 3.9027)
Luminance0.1409 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F7923 #791F75
analogous
#48791F #1F7923 #1F7950
triadic
#1F7923 #231F79 #79231F
tetradic
#1F7923 #1F4879 #791F75 #79501F
square
#1F7923 #1F4879 #791F75 #79501F
split-complementary
#1F7923 #501F79 #791F48
monochromatic
#061807 #134815 #1F7923 #2BAA31 #43CF4A

Accessibility & contrast

On white

5.50
#1F7923 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.82
#1F7923 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F7923
5.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F7923#FFFFFF#000000##FFFFFF
##1F79231.005.503.825.50
#FFFFFF5.501.0021.001.00
#0000003.8221.001.0021.00
##FFFFFF5.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7C6D17
Deuteranopia (green-blind)
#71662B
Tritanopia (blue-blind)
#007568
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #1f7923;
/* rgb */ color: rgb(31, 121, 35);
/* oklch */ color: oklch(50.6% 0.147 143.6);
Tailwind
colors: {
  custom: {
    50: '#6aa163',
    500: '#1f7923',
    950: '#000000',
  },
}
SCSS
$custom: #1f7923;
$custom-light: #6aa163;
$custom-dark: #000000;
JSON
{
  "hex": "#1f7923",
  "rgb": {
    "r": 31,
    "g": 121,
    "b": 35
  },
  "hsl": {
    "h": 122.667,
    "s": 59.211,
    "l": 29.804
  },
  "oklch": {
    "l": 0.50589,
    "c": 0.14741,
    "h": 143.6
  },
  "luminance": 0.14087
}

Semantic roles & 50–950 ramp

primary
#1F7923
secondary
#AC47A8
accent
#45DBE2
background
#F6FAF6
surface
#ECF3EB
border
#C7CDC6
text
#070F05
muted
#7A7F7A

Preview Lab

Preview with #1F7923

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

Preview Lab → · Contrast checker → · Palette generator →

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