#12271B#12271B

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

Color values

HEX#12271B
RGBrgb(18, 39, 27)
HSLhsl(146, 37%, 11%)
HSVhsv(146, 54%, 15%)
CMYKcmyk(53.8%, 0%, 30.8%, 84.7%)
CIE-LABlab(13.58, -11.98, 5.35)
CIE-LCHlch(13.58, 13.12, 155.92°)
OKLaboklab(25.08% -0.033 0.0137)
OKLCHoklch(25.08% 0.036 157.5)
XYZxyz(1.1727, 1.6587, 1.2951)
Luminance0.0166 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12271B #27121E
analogous
#132712 #12271B #122725
triadic
#12271B #1B1227 #271B12
tetradic
#12271B #121327 #27121E #272512
square
#12271B #121327 #27121E #272512
split-complementary
#12271B #251227 #271213
monochromatic
#0A150E #0A150E #12271B #255138 #397B55

Accessibility & contrast

On white

15.77
#12271B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #12271B
15.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12271B#FFFFFF#000000##FFFFFF
##12271B1.0015.771.3315.77
#FFFFFF15.771.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.771.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #12271b;
/* rgb */ color: rgb(18, 39, 27);
/* oklch */ color: oklch(25.1% 0.036 157.5);
Tailwind
colors: {
  custom: {
    50: '#516157',
    500: '#12271b',
    950: '#000000',
  },
}
SCSS
$custom: #12271b;
$custom-light: #516157;
$custom-dark: #000000;
JSON
{
  "hex": "#12271b",
  "rgb": {
    "r": 18,
    "g": 39,
    "b": 27
  },
  "hsl": {
    "h": 145.714,
    "s": 36.842,
    "l": 11.176
  },
  "oklch": {
    "l": 0.25078,
    "c": 0.0357,
    "h": 157.5
  },
  "luminance": 0.01659
}

Semantic roles & 50–950 ramp

primary
#12271B
secondary
#5E374D
accent
#5B9CCD
background
#F4F5F5
surface
#E7E9E9
border
#C3C5C5
text
#020503
muted
#787978

Preview Lab

Preview with #12271B

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

Preview Lab → · Contrast checker → · Palette generator →

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