#26871F#26871F

#26871F is a mid, vivid green. Relative luminance 0.178; OKLCH L 54.7% C 0.165 H 142.1°. Best body text is #FFFFFF at 4.60:1 contrast (WCAG AA passes).

Color values

HEX#26871F
RGBrgb(38, 135, 31)
HSLhsl(116, 63%, 33%)
HSVhsv(116, 77%, 53%)
CMYKcmyk(71.9%, 0%, 77%, 47.1%)
CIE-LABlab(49.30, -47.72, 44.86)
CIE-LCHlch(49.30, 65.50, 136.77°)
OKLaboklab(54.73% -0.1299 0.1011)
OKLCHoklch(54.73% 0.165 142.1)
XYZxyz(9.7101, 17.8379, 4.2274)
Luminance0.1784 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#26871F #801F87
analogous
#5A871F #26871F #1F874C
triadic
#26871F #1F2687 #871F26
tetradic
#26871F #1F5A87 #801F87 #874C1F
square
#26871F #1F5A87 #801F87 #874C1F
split-complementary
#26871F #4C1F87 #871F5A
monochromatic
#0A2308 #185514 #26871F #34B92A #54D64B

Accessibility & contrast

On white

4.60
#26871F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.57
#26871F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #26871F
4.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##26871F#FFFFFF#000000##FFFFFF
##26871F1.004.604.574.60
#FFFFFF4.601.0021.001.00
#0000004.5721.001.0021.00
##FFFFFF4.601.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #26871f;
/* rgb */ color: rgb(38, 135, 31);
/* oklch */ color: oklch(54.7% 0.165 142.1);
Tailwind
colors: {
  custom: {
    50: '#70ab62',
    500: '#26871f',
    950: '#000000',
  },
}
SCSS
$custom: #26871f;
$custom-light: #70ab62;
$custom-dark: #000000;
JSON
{
  "hex": "#26871f",
  "rgb": {
    "r": 38,
    "g": 135,
    "b": 31
  },
  "hsl": {
    "h": 115.962,
    "s": 62.651,
    "l": 32.549
  },
  "oklch": {
    "l": 0.54725,
    "c": 0.16461,
    "h": 142.1
  },
  "luminance": 0.17839
}

Semantic roles & 50–950 ramp

primary
#26871F
secondary
#B14AB8
accent
#42E6DB
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#091005
muted
#7B7F7A

Preview Lab

Preview with #26871F

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

Preview Lab → · Contrast checker → · Palette generator →

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