#080512#080512

#080512 is a very dark, muted violet. Relative luminance 0.002; OKLCH L 13.0% C 0.031 H 294.5°. Best body text is #FFFFFF at 20.18:1 contrast (WCAG AA passes).

Color values

HEX#080512
RGBrgb(8, 5, 18)
HSLhsl(254, 57%, 5%)
HSVhsv(254, 72%, 7%)
CMYKcmyk(55.6%, 72.2%, 0%, 92.9%)
CIE-LABlab(1.84, 2.86, -5.37)
CIE-LCHlch(1.84, 6.09, 298.05°)
OKLaboklab(12.96% 0.0127 -0.0279)
OKLCHoklch(12.96% 0.031 294.5)
XYZxyz(0.2636, 0.2038, 0.5976)
Luminance0.0020 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#080512 #0F1205
analogous
#050912 #080512 #0F0512
triadic
#080512 #120805 #051208
tetradic
#080512 #120509 #0F1205 #05120F
square
#080512 #120509 #0F1205 #05120F
split-complementary
#080512 #120F05 #091205
monochromatic
#0B0718 #0B0718 #0B0718 #1D1242 #332072

Accessibility & contrast

On white

20.18
#080512 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.04
#080512 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #080512
20.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##080512#FFFFFF#000000##FFFFFF
##0805121.0020.181.0420.18
#FFFFFF20.181.0021.001.00
#0000001.0421.001.0021.00
##FFFFFF20.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#020713
Deuteranopia (green-blind)
#030712
Tritanopia (blue-blind)
#06070A
Achromatopsia (no color)
#070707

Design tokens & code

CSS
--color: #080512;
/* rgb */ color: rgb(8, 5, 18);
/* oklch */ color: oklch(13.0% 0.031 294.5);
Tailwind
colors: {
  custom: {
    50: '#4a494f',
    500: '#080512',
    950: '#000000',
  },
}
SCSS
$custom: #080512;
$custom-light: #4a494f;
$custom-dark: #000000;
JSON
{
  "hex": "#080512",
  "rgb": {
    "r": 8,
    "g": 5,
    "b": 18
  },
  "hsl": {
    "h": 253.846,
    "s": 56.522,
    "l": 4.51
  },
  "oklch": {
    "l": 0.12957,
    "c": 0.03071,
    "h": 294.5
  },
  "luminance": 0.00204
}

Semantic roles & 50–950 ramp

primary
#080512
secondary
#465023
accent
#E048BD
background
#F4F4F4
surface
#E7E6E7
border
#C3C2C3
text
#010002
muted
#777778

Preview Lab

Preview with #080512

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

Preview Lab → · Contrast checker → · Palette generator →

#080512 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva