#23871F#23871F

#23871F is a mid, vivid green. Relative luminance 0.178; OKLCH L 54.6% C 0.166 H 142.5°. Best body text is #FFFFFF at 4.61:1 contrast (WCAG AA passes).

Color values

HEX#23871F
RGBrgb(35, 135, 31)
HSLhsl(118, 63%, 33%)
HSVhsv(118, 77%, 53%)
CMYKcmyk(74.1%, 0%, 77%, 47.1%)
CIE-LABlab(49.23, -48.29, 44.77)
CIE-LCHlch(49.23, 65.85, 137.16°)
OKLaboklab(54.65% -0.1313 0.1009)
OKLCHoklch(54.65% 0.166 142.5)
XYZxyz(9.6039, 17.7831, 4.2224)
Luminance0.1778 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#23871F #831F87
analogous
#57871F #23871F #1F874F
triadic
#23871F #1F2387 #871F23
tetradic
#23871F #1F5787 #831F87 #874F1F
square
#23871F #1F5787 #831F87 #874F1F
split-complementary
#23871F #4F1F87 #871F57
monochromatic
#092308 #165514 #23871F #30B92A #50D64B

Accessibility & contrast

On white

4.61
#23871F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.56
#23871F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #23871F
4.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##23871F#FFFFFF#000000##FFFFFF
##23871F1.004.614.564.61
#FFFFFF4.611.0021.001.00
#0000004.5621.001.0021.00
##FFFFFF4.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#8A7A09
Deuteranopia (green-blind)
#7F722A
Tritanopia (blue-blind)
#008373
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #23871f;
/* rgb */ color: rgb(35, 135, 31);
/* oklch */ color: oklch(54.6% 0.166 142.5);
Tailwind
colors: {
  custom: {
    50: '#6fab62',
    500: '#23871f',
    950: '#000000',
  },
}
SCSS
$custom: #23871f;
$custom-light: #6fab62;
$custom-dark: #000000;
JSON
{
  "hex": "#23871f",
  "rgb": {
    "r": 35,
    "g": 135,
    "b": 31
  },
  "hsl": {
    "h": 117.692,
    "s": 62.651,
    "l": 32.549
  },
  "oklch": {
    "l": 0.5465,
    "c": 0.16558,
    "h": 142.5
  },
  "luminance": 0.17784
}

Semantic roles & 50–950 ramp

primary
#23871F
secondary
#B44AB8
accent
#42E6DF
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#081005
muted
#7B7F7A

Preview Lab

Preview with #23871F

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

Preview Lab → · Contrast checker → · Palette generator →

#23871F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva