#23871B#23871B

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

Color values

HEX#23871B
RGBrgb(35, 135, 27)
HSLhsl(116, 67%, 32%)
HSVhsv(116, 80%, 53%)
CMYKcmyk(74.1%, 0%, 80%, 47.1%)
CIE-LABlab(49.21, -48.58, 46.15)
CIE-LCHlch(49.21, 67.01, 136.47°)
OKLaboklab(54.62% -0.1323 0.1032)
OKLCHoklch(54.62% 0.168 142)
XYZxyz(9.5544, 17.7633, 3.9618)
Luminance0.1776 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#23871B #7F1B87
analogous
#59871B #23871B #1B8749
triadic
#23871B #1B2387 #871B23
tetradic
#23871B #1B5987 #7F1B87 #87491B
square
#23871B #1B5987 #7F1B87 #87491B
split-complementary
#23871B #491B87 #871B59
monochromatic
#092107 #165411 #23871B #30BA25 #4ED943

Accessibility & contrast

On white

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

On black

4.55
#23871B on #000000
AA ✓AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##23871B#FFFFFF#000000##FFFFFF
##23871B1.004.614.554.61
#FFFFFF4.611.0021.001.00
#0000004.5521.001.0021.00
##FFFFFF4.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#8A7A00
Deuteranopia (green-blind)
#7F7228
Tritanopia (blue-blind)
#028373
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #23871b;
/* rgb */ color: rgb(35, 135, 27);
/* oklch */ color: oklch(54.6% 0.168 142.0);
Tailwind
colors: {
  custom: {
    50: '#6fab60',
    500: '#23871b',
    950: '#000000',
  },
}
SCSS
$custom: #23871b;
$custom-light: #6fab60;
$custom-dark: #000000;
JSON
{
  "hex": "#23871b",
  "rgb": {
    "r": 35,
    "g": 135,
    "b": 27
  },
  "hsl": {
    "h": 115.556,
    "s": 66.667,
    "l": 31.765
  },
  "oklch": {
    "l": 0.54622,
    "c": 0.16778,
    "h": 142
  },
  "luminance": 0.17764
}

Semantic roles & 50–950 ramp

primary
#23871B
secondary
#B144BA
accent
#3EEADD
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#081005
muted
#7B7F79

Preview Lab

Preview with #23871B

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

Preview Lab → · Contrast checker → · Palette generator →

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