#2A0532#2A0532

#2A0532 is a very dark, moderate purple. Relative luminance 0.008; OKLCH L 21.4% C 0.089 H 319.8°. Best body text is #FFFFFF at 18.01:1 contrast (WCAG AA passes).

Color values

HEX#2A0532
RGBrgb(42, 5, 50)
HSLhsl(289, 82%, 11%)
HSVhsv(289, 90%, 20%)
CMYKcmyk(16%, 90%, 0%, 80.4%)
CIE-LABlab(7.51, 26.41, -20.50)
CIE-LCHlch(7.51, 33.43, 322.18°)
OKLaboklab(21.43% 0.0683 -0.0576)
OKLCHoklch(21.43% 0.089 319.8)
XYZxyz(1.5848, 0.8312, 3.0939)
Luminance0.0083 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A0532 #0D3205
analogous
#130532 #2A0532 #320523
triadic
#2A0532 #322A05 #05322A
tetradic
#2A0532 #321305 #0D3205 #052332
square
#2A0532 #321305 #0D3205 #052332
split-complementary
#2A0532 #233205 #053213
monochromatic
#17031C #17031C #2A0532 #590B6A #8710A1

Accessibility & contrast

On white

18.01
#2A0532 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.17
#2A0532 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A0532
18.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A0532#FFFFFF#000000##FFFFFF
##2A05321.0018.011.1718.01
#FFFFFF18.011.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF18.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001433
Deuteranopia (green-blind)
#081831
Tritanopia (blue-blind)
#2A0E1B
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #2a0532;
/* rgb */ color: rgb(42, 5, 50);
/* oklch */ color: oklch(21.4% 0.089 319.8);
Tailwind
colors: {
  custom: {
    50: '#66496a',
    500: '#2a0532',
    950: '#000000',
  },
}
SCSS
$custom: #2a0532;
$custom-light: #66496a;
$custom-dark: #000000;
JSON
{
  "hex": "#2a0532",
  "rgb": {
    "r": 42,
    "g": 5,
    "b": 50
  },
  "hsl": {
    "h": 289.333,
    "s": 81.818,
    "l": 10.784
  },
  "oklch": {
    "l": 0.21431,
    "c": 0.08932,
    "h": 319.8
  },
  "luminance": 0.00831
}

Semantic roles & 50–950 ramp

primary
#2A0532
secondary
#2E731F
accent
#F83053
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#060106
muted
#7A777A

Preview Lab

Preview with #2A0532

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

Preview Lab → · Contrast checker → · Palette generator →

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