#6B28A9#6B28A9

#6B28A9 is a dark, vivid violet. Relative luminance 0.075; OKLCH L 44.6% C 0.192 H 302.7°. Best body text is #FFFFFF at 8.39:1 contrast (WCAG AA passes).

Color values

HEX#6B28A9
RGBrgb(107, 40, 169)
HSLhsl(271, 62%, 41%)
HSVhsv(271, 76%, 66%)
CMYKcmyk(36.7%, 76.3%, 0%, 33.7%)
CIE-LABlab(32.94, 53.01, -56.74)
CIE-LCHlch(32.94, 77.65, 313.06°)
OKLaboklab(44.58% 0.104 -0.1618)
OKLCHoklch(44.58% 0.192 302.7)
XYZxyz(13.9819, 7.5079, 38.2410)
Luminance0.0751 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B28A9 #66A928
analogous
#2B28A9 #6B28A9 #A928A6
triadic
#6B28A9 #A96B28 #28A96B
tetradic
#6B28A9 #A92B28 #66A928 #28A6A9
square
#6B28A9 #A92B28 #66A928 #28A6A9
split-complementary
#6B28A9 #A6A928 #28A92B
monochromatic
#2C1146 #4C1C78 #6B28A9 #8A3DD1 #A86FDD

Accessibility & contrast

On white

8.39
#6B28A9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#6B28A9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6B28A9
8.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B28A9#FFFFFF#000000##FFFFFF
##6B28A91.008.392.508.39
#FFFFFF8.391.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CAD
Deuteranopia (green-blind)
#004DA6
Tritanopia (blue-blind)
#5E4967
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #6b28a9;
/* rgb */ color: rgb(107, 40, 169);
/* oklch */ color: oklch(44.6% 0.192 302.7);
Tailwind
colors: {
  custom: {
    50: '#9b69c3',
    500: '#6b28a9',
    950: '#000000',
  },
}
SCSS
$custom: #6b28a9;
$custom-light: #9b69c3;
$custom-dark: #000000;
JSON
{
  "hex": "#6b28a9",
  "rgb": {
    "r": 107,
    "g": 40,
    "b": 169
  },
  "hsl": {
    "h": 271.163,
    "s": 61.722,
    "l": 40.98
  },
  "oklch": {
    "l": 0.44579,
    "c": 0.19234,
    "h": 302.7
  },
  "luminance": 0.07508
}

Semantic roles & 50–950 ramp

primary
#6B28A9
secondary
#95C469
accent
#E54391
background
#FAF6FC
surface
#F3EBF8
border
#CDC6D1
text
#0F0713
muted
#7F7A82

Preview Lab

Preview with #6B28A9

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

Preview Lab → · Contrast checker → · Palette generator →

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