#24871F#24871F

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

Color values

HEX#24871F
RGBrgb(36, 135, 31)
HSLhsl(117, 63%, 33%)
HSVhsv(117, 77%, 53%)
CMYKcmyk(73.3%, 0%, 77%, 47.1%)
CIE-LABlab(49.25, -48.10, 44.80)
CIE-LCHlch(49.25, 65.74, 137.04°)
OKLaboklab(54.67% -0.1308 0.101)
OKLCHoklch(54.67% 0.165 142.4)
XYZxyz(9.6383, 17.8009, 4.2240)
Luminance0.1780 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#24871F #821F87
analogous
#58871F #24871F #1F874E
triadic
#24871F #1F2487 #871F24
tetradic
#24871F #1F5887 #821F87 #874E1F
square
#24871F #1F5887 #821F87 #874E1F
split-complementary
#24871F #4E1F87 #871F58
monochromatic
#092308 #175514 #24871F #31B92A #51D64B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##24871F#FFFFFF#000000##FFFFFF
##24871F1.004.604.564.60
#FFFFFF4.601.0021.001.00
#0000004.5621.001.0021.00
##FFFFFF4.601.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #24871f;
/* rgb */ color: rgb(36, 135, 31);
/* oklch */ color: oklch(54.7% 0.165 142.4);
Tailwind
colors: {
  custom: {
    50: '#6fab62',
    500: '#24871f',
    950: '#000000',
  },
}
SCSS
$custom: #24871f;
$custom-light: #6fab62;
$custom-dark: #000000;
JSON
{
  "hex": "#24871f",
  "rgb": {
    "r": 36,
    "g": 135,
    "b": 31
  },
  "hsl": {
    "h": 117.115,
    "s": 62.651,
    "l": 32.549
  },
  "oklch": {
    "l": 0.54674,
    "c": 0.16527,
    "h": 142.4
  },
  "luminance": 0.17802
}

Semantic roles & 50–950 ramp

primary
#24871F
secondary
#B34AB8
accent
#42E6DE
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#081005
muted
#7B7F7A

Preview Lab

Preview with #24871F

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

Preview Lab → · Contrast checker → · Palette generator →

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