#6B28AC#6B28AC

#6B28AC is a dark, vivid violet. Relative luminance 0.076; OKLCH L 44.8% C 0.195 H 301.9°. Best body text is #FFFFFF at 8.32:1 contrast (WCAG AA passes).

Color values

HEX#6B28AC
RGBrgb(107, 40, 172)
HSLhsl(270, 62%, 42%)
HSVhsv(270, 77%, 67%)
CMYKcmyk(37.8%, 76.7%, 0%, 32.5%)
CIE-LABlab(33.18, 53.73, -58.13)
CIE-LCHlch(33.18, 79.16, 312.75°)
OKLaboklab(44.83% 0.1033 -0.1659)
OKLCHoklch(44.83% 0.195 301.9)
XYZxyz(14.2668, 7.6219, 39.7413)
Luminance0.0762 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B28AC #69AC28
analogous
#2928AC #6B28AC #AC28AB
triadic
#6B28AC #AC6B28 #28AC6B
tetradic
#6B28AC #AC2928 #69AC28 #28ABAC
square
#6B28AC #AC2928 #69AC28 #28ABAC
split-complementary
#6B28AC #ABAC28 #28AC29
monochromatic
#2D1149 #4C1C7A #6B28AC #8A3FD2 #A871DE

Accessibility & contrast

On white

8.32
#6B28AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#6B28AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6B28AC
8.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B28AC#FFFFFF#000000##FFFFFF
##6B28AC1.008.322.528.32
#FFFFFF8.321.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DB0
Deuteranopia (green-blind)
#004DA9
Tritanopia (blue-blind)
#5D4A69
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #6b28ac;
/* rgb */ color: rgb(107, 40, 172);
/* oklch */ color: oklch(44.8% 0.195 301.9);
Tailwind
colors: {
  custom: {
    50: '#9b69c6',
    500: '#6b28ac',
    950: '#000000',
  },
}
SCSS
$custom: #6b28ac;
$custom-light: #9b69c6;
$custom-dark: #000000;
JSON
{
  "hex": "#6b28ac",
  "rgb": {
    "r": 107,
    "g": 40,
    "b": 172
  },
  "hsl": {
    "h": 270.455,
    "s": 62.264,
    "l": 41.569
  },
  "oklch": {
    "l": 0.44829,
    "c": 0.19542,
    "h": 301.9
  },
  "luminance": 0.07622
}

Semantic roles & 50–950 ramp

primary
#6B28AC
secondary
#97C56B
accent
#E54293
background
#FAF6FC
surface
#F3EBF8
border
#CDC6D1
text
#0F0713
muted
#7F7A82

Preview Lab

Preview with #6B28AC

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

Preview Lab → · Contrast checker → · Palette generator →

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