#12180C#12180C

#12180C is a very dark, muted yellow-green. Relative luminance 0.008; OKLCH L 19.9% C 0.025 H 130.0°. Best body text is #FFFFFF at 18.08:1 contrast (WCAG AA passes).

Color values

HEX#12180C
RGBrgb(18, 24, 12)
HSLhsl(90, 33%, 7%)
HSVhsv(90, 50%, 9%)
CMYKcmyk(25%, 0%, 50%, 90.6%)
CIE-LABlab(7.30, -5.16, 5.87)
CIE-LCHlch(7.30, 7.81, 131.32°)
OKLaboklab(19.86% -0.0158 0.0189)
OKLCHoklch(19.86% 0.025 130)
XYZxyz(0.6424, 0.8084, 0.4699)
Luminance0.0081 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12180C #120C18
analogous
#18180C #12180C #0C180C
triadic
#12180C #0C1218 #180C12
tetradic
#12180C #0C1818 #120C18 #180C0C
square
#12180C #0C1818 #120C18 #180C0C
split-complementary
#12180C #0C0C18 #180C18
monochromatic
#0F140A #0F140A #12180C #314120 #4F6A35

Accessibility & contrast

On white

18.08
#12180C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.16
#12180C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12180C
18.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12180C#FFFFFF#000000##FFFFFF
##12180C1.0018.081.1618.08
#FFFFFF18.081.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#19160B
Deuteranopia (green-blind)
#18160D
Tritanopia (blue-blind)
#121715
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #12180c;
/* rgb */ color: rgb(18, 24, 12);
/* oklch */ color: oklch(19.9% 0.025 130.0);
Tailwind
colors: {
  custom: {
    50: '#4f544c',
    500: '#12180c',
    950: '#000000',
  },
}
SCSS
$custom: #12180c;
$custom-light: #4f544c;
$custom-dark: #000000;
JSON
{
  "hex": "#12180c",
  "rgb": {
    "r": 18,
    "g": 24,
    "b": 12
  },
  "hsl": {
    "h": 90,
    "s": 33.333,
    "l": 7.059
  },
  "oklch": {
    "l": 0.19865,
    "c": 0.02462,
    "h": 130
  },
  "luminance": 0.00808
}

Semantic roles & 50–950 ramp

primary
#12180C
secondary
#40314F
accent
#5EC994
background
#F4F4F4
surface
#E7E7E7
border
#C3C3C3
text
#020201
muted
#787877

Preview Lab

Preview with #12180C

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

Preview Lab → · Contrast checker → · Palette generator →

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