#2A0636#2A0636

#2A0636 is a very dark, moderate purple. Relative luminance 0.009; OKLCH L 21.9% C 0.092 H 316.1°. Best body text is #FFFFFF at 17.83:1 contrast (WCAG AA passes).

Color values

HEX#2A0636
RGBrgb(42, 6, 54)
HSLhsl(285, 80%, 12%)
HSVhsv(285, 89%, 21%)
CMYKcmyk(22.2%, 88.9%, 0%, 78.8%)
CIE-LABlab(8.03, 26.82, -22.60)
CIE-LCHlch(8.03, 35.07, 319.88°)
OKLaboklab(21.91% 0.0661 -0.0637)
OKLCHoklch(21.91% 0.092 316.1)
XYZxyz(1.6857, 0.8889, 3.5721)
Luminance0.0089 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A0636 #123606
analogous
#120636 #2A0636 #36062A
triadic
#2A0636 #362A06 #06362A
tetradic
#2A0636 #361206 #123606 #062A36
square
#2A0636 #361206 #123606 #062A36
split-complementary
#2A0636 #2A3606 #063612
monochromatic
#15031C #15031C #2A0636 #550C6D #8012A4

Accessibility & contrast

On white

17.83
#2A0636 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.18
#2A0636 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A0636
17.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A0636#FFFFFF#000000##FFFFFF
##2A06361.0017.831.1817.83
#FFFFFF17.831.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001537
Deuteranopia (green-blind)
#051935
Tritanopia (blue-blind)
#29101D
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #2a0636;
/* rgb */ color: rgb(42, 6, 54);
/* oklch */ color: oklch(21.9% 0.092 316.1);
Tailwind
colors: {
  custom: {
    50: '#664a6d',
    500: '#2a0636',
    950: '#000000',
  },
}
SCSS
$custom: #2a0636;
$custom-light: #664a6d;
$custom-dark: #000000;
JSON
{
  "hex": "#2a0636",
  "rgb": {
    "r": 42,
    "g": 6,
    "b": 54
  },
  "hsl": {
    "h": 285,
    "s": 80,
    "l": 11.765
  },
  "oklch": {
    "l": 0.21912,
    "c": 0.0918,
    "h": 316.1
  },
  "luminance": 0.00889
}

Semantic roles & 50–950 ramp

primary
#2A0636
secondary
#377621
accent
#F63163
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#060107
muted
#7A777A

Preview Lab

Preview with #2A0636

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

Preview Lab → · Contrast checker → · Palette generator →

#2A0636 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva