#12271C#12271C

#12271C is a dark, muted green. Relative luminance 0.017; OKLCH L 25.1% C 0.035 H 159.7°. Best body text is #FFFFFF at 15.76:1 contrast (WCAG AA passes).

Color values

HEX#12271C
RGBrgb(18, 39, 28)
HSLhsl(149, 37%, 11%)
HSVhsv(149, 54%, 15%)
CMYKcmyk(53.8%, 0%, 28.2%, 84.7%)
CIE-LABlab(13.61, -11.71, 4.68)
CIE-LCHlch(13.61, 12.61, 158.20°)
OKLaboklab(25.11% -0.0324 0.012)
OKLCHoklch(25.11% 0.035 159.7)
XYZxyz(1.1845, 1.6634, 1.3570)
Luminance0.0166 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12271C #27121D
analogous
#122712 #12271C #122726
triadic
#12271C #1C1227 #271C12
tetradic
#12271C #121227 #27121D #272612
square
#12271C #121227 #27121D #272612
split-complementary
#12271C #261227 #271212
monochromatic
#0A150F #0A150F #12271C #25513A #397B58

Accessibility & contrast

On white

15.76
#12271C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#12271C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12271C
15.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12271C#FFFFFF#000000##FFFFFF
##12271C1.0015.761.3315.76
#FFFFFF15.761.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#27241B
Deuteranopia (green-blind)
#23221D
Tritanopia (blue-blind)
#0D2724
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #12271c;
/* rgb */ color: rgb(18, 39, 28);
/* oklch */ color: oklch(25.1% 0.035 159.7);
Tailwind
colors: {
  custom: {
    50: '#516158',
    500: '#12271c',
    950: '#000000',
  },
}
SCSS
$custom: #12271c;
$custom-light: #516158;
$custom-dark: #000000;
JSON
{
  "hex": "#12271c",
  "rgb": {
    "r": 18,
    "g": 39,
    "b": 28
  },
  "hsl": {
    "h": 148.571,
    "s": 36.842,
    "l": 11.176
  },
  "oklch": {
    "l": 0.2511,
    "c": 0.03454,
    "h": 159.7
  },
  "luminance": 0.01663
}

Semantic roles & 50–950 ramp

primary
#12271C
secondary
#5E374B
accent
#5B97CD
background
#F4F5F5
surface
#E7E9E9
border
#C3C5C5
text
#020503
muted
#787978

Preview Lab

Preview with #12271C

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

Preview Lab → · Contrast checker → · Palette generator →

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