#6A1882#6A1882

#6A1882 is a dark, vivid purple. Relative luminance 0.053; OKLCH L 39.9% C 0.171 H 317.0°. Best body text is #FFFFFF at 10.17:1 contrast (WCAG AA passes).

Color values

HEX#6A1882
RGBrgb(106, 24, 130)
HSLhsl(286, 69%, 30%)
HSVhsv(286, 82%, 51%)
CMYKcmyk(18.5%, 81.5%, 0%, 49%)
CIE-LABlab(27.65, 50.21, -41.38)
CIE-LCHlch(27.65, 65.06, 320.51°)
OKLaboklab(39.88% 0.125 -0.1166)
OKLCHoklch(39.88% 0.171 317)
XYZxyz(10.2992, 5.3296, 21.6010)
Luminance0.0533 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A1882 #308218
analogous
#351882 #6A1882 #821865
triadic
#6A1882 #826A18 #18826A
tetradic
#6A1882 #823518 #308218 #186582
square
#6A1882 #823518 #308218 #186582
split-complementary
#6A1882 #658218 #188235
monochromatic
#16051B #400E4E #6A1882 #9422B6 #B63ADB

Accessibility & contrast

On white

10.17
#6A1882 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#6A1882 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A1882
10.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A1882#FFFFFF#000000##FFFFFF
##6A18821.0010.172.0710.17
#FFFFFF10.171.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C85
Deuteranopia (green-blind)
#194480
Tritanopia (blue-blind)
#69314D
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #6a1882;
/* rgb */ color: rgb(106, 24, 130);
/* oklch */ color: oklch(39.9% 0.171 317.0);
Tailwind
colors: {
  custom: {
    50: '#9860a7',
    500: '#6a1882',
    950: '#000000',
  },
}
SCSS
$custom: #6a1882;
$custom-light: #9860a7;
$custom-dark: #000000;
JSON
{
  "hex": "#6a1882",
  "rgb": {
    "r": 106,
    "g": 24,
    "b": 130
  },
  "hsl": {
    "h": 286.415,
    "s": 68.831,
    "l": 30.196
  },
  "oklch": {
    "l": 0.39882,
    "c": 0.17095,
    "h": 317
  },
  "luminance": 0.05329
}

Semantic roles & 50–950 ramp

primary
#6A1882
secondary
#5AB640
accent
#EC3C64
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0E050F
muted
#7E7A7F

Preview Lab

Preview with #6A1882

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

Preview Lab → · Contrast checker → · Palette generator →

#6A1882 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva