#21480C#21480C

#21480C is a dark, moderate yellow-green. Relative luminance 0.050; OKLCH L 35.9% C 0.098 H 137.1°. Best body text is #FFFFFF at 10.52:1 contrast (WCAG AA passes).

Color values

HEX#21480C
RGBrgb(33, 72, 12)
HSLhsl(99, 71%, 16%)
HSVhsv(99, 83%, 28%)
CMYKcmyk(54.2%, 0%, 83.3%, 71.8%)
CIE-LABlab(26.69, -25.81, 29.71)
CIE-LCHlch(26.69, 39.35, 130.98°)
OKLaboklab(35.94% -0.0716 0.0666)
OKLCHoklch(35.94% 0.098 137.1)
XYZxyz(3.0108, 4.9844, 1.1512)
Luminance0.0498 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21480C #330C48
analogous
#3F480C #21480C #0C4815
triadic
#21480C #0C2148 #480C21
tetradic
#21480C #0C3F48 #330C48 #48150C
square
#21480C #0C3F48 #330C48 #48150C
split-complementary
#21480C #150C48 #480C3F
monochromatic
#0C1A04 #0C1A04 #21480C #397C15 #51B11D

Accessibility & contrast

On white

10.52
#21480C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#21480C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21480C
10.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21480C#FFFFFF#000000##FFFFFF
##21480C1.0010.522.0010.52
#FFFFFF10.521.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4B4102
Deuteranopia (green-blind)
#463E12
Tritanopia (blue-blind)
#1F453D
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #21480c;
/* rgb */ color: rgb(33, 72, 12);
/* oklch */ color: oklch(35.9% 0.098 137.1);
Tailwind
colors: {
  custom: {
    50: '#617b50',
    500: '#21480c',
    950: '#000000',
  },
}
SCSS
$custom: #21480c;
$custom-light: #617b50;
$custom-dark: #000000;
JSON
{
  "hex": "#21480c",
  "rgb": {
    "r": 33,
    "g": 72,
    "b": 12
  },
  "hsl": {
    "h": 99,
    "s": 71.429,
    "l": 16.471
  },
  "oklch": {
    "l": 0.35943,
    "c": 0.09779,
    "h": 137.1
  },
  "luminance": 0.04985
}

Semantic roles & 50–950 ramp

primary
#21480C
secondary
#652C84
accent
#3AEEAF
background
#F5F7F4
surface
#EAEEE7
border
#C6C9C3
text
#050902
muted
#797B78

Preview Lab

Preview with #21480C

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

Preview Lab → · Contrast checker → · Palette generator →

#21480C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva