#21874F#21874F

#21874F is a mid, vivid green. Relative luminance 0.182; OKLCH L 55.3% C 0.126 H 154.1°. Best body text is #000000 at 4.64:1 contrast (WCAG AA passes).

Color values

HEX#21874F
RGBrgb(33, 135, 79)
HSLhsl(147, 61%, 33%)
HSVhsv(147, 76%, 53%)
CMYKcmyk(75.6%, 0%, 41.5%, 47.1%)
CIE-LABlab(49.76, -41.99, 22.10)
CIE-LCHlch(49.76, 47.45, 152.24°)
OKLaboklab(55.25% -0.1132 0.055)
OKLCHoklch(55.25% 0.126 154.1)
XYZxyz(10.7015, 18.2145, 10.3474)
Luminance0.1822 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21874F #872159
analogous
#268721 #21874F #218782
triadic
#21874F #4F2187 #874F21
tetradic
#21874F #212687 #872159 #878221
square
#21874F #212687 #872159 #878221
split-complementary
#21874F #822187 #872126
monochromatic
#092515 #155632 #21874F #2DB86C #4FD48B

Accessibility & contrast

On white

4.52
#21874F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.64
#21874F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #21874F
4.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21874F#FFFFFF#000000##000000
##21874F1.004.524.644.64
#FFFFFF4.521.0021.0021.00
#0000004.6421.001.001.00
##0000004.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#877C4B
Deuteranopia (green-blind)
#7A7353
Tritanopia (blue-blind)
#008579
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #21874f;
/* rgb */ color: rgb(33, 135, 79);
/* oklch */ color: oklch(55.3% 0.126 154.1);
Tailwind
colors: {
  custom: {
    50: '#6cab81',
    500: '#21874f',
    950: '#000000',
  },
}
SCSS
$custom: #21874f;
$custom-light: #6cab81;
$custom-dark: #000000;
JSON
{
  "hex": "#21874f",
  "rgb": {
    "r": 33,
    "g": 135,
    "b": 79
  },
  "hsl": {
    "h": 147.059,
    "s": 60.714,
    "l": 32.941
  },
  "oklch": {
    "l": 0.55254,
    "c": 0.12585,
    "h": 154.1
  },
  "luminance": 0.18216
}

Semantic roles & 50–950 ramp

primary
#21874F
secondary
#B74D87
accent
#449CE4
background
#F7FAF7
surface
#EDF4EE
border
#C8CEC9
text
#08100A
muted
#7B7F7C

Preview Lab

Preview with #21874F

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

Preview Lab → · Contrast checker → · Palette generator →

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