#6B28AB#6B28AB

#6B28AB is a dark, vivid violet. Relative luminance 0.076; OKLCH L 44.7% C 0.194 H 302.2°. Best body text is #FFFFFF at 8.34:1 contrast (WCAG AA passes).

Color values

HEX#6B28AB
RGBrgb(107, 40, 171)
HSLhsl(271, 62%, 41%)
HSVhsv(271, 77%, 67%)
CMYKcmyk(37.4%, 76.6%, 0%, 32.9%)
CIE-LABlab(33.10, 53.49, -57.67)
CIE-LCHlch(33.10, 78.66, 312.85°)
OKLaboklab(44.75% 0.1035 -0.1645)
OKLCHoklch(44.75% 0.194 302.2)
XYZxyz(14.1711, 7.5836, 39.2374)
Luminance0.0758 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B28AB #68AB28
analogous
#2A28AB #6B28AB #AB28AA
triadic
#6B28AB #AB6B28 #28AB6B
tetradic
#6B28AB #AB2A28 #68AB28 #28AAAB
square
#6B28AB #AB2A28 #68AB28 #28AAAB
split-complementary
#6B28AB #AAAB28 #28AB2A
monochromatic
#2D1148 #4C1C79 #6B28AB #8A3ED2 #A870DE

Accessibility & contrast

On white

8.34
#6B28AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #6B28AB
8.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B28AB#FFFFFF#000000##FFFFFF
##6B28AB1.008.342.528.34
#FFFFFF8.341.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DAF
Deuteranopia (green-blind)
#004DA8
Tritanopia (blue-blind)
#5D4A68
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #6b28ab;
/* rgb */ color: rgb(107, 40, 171);
/* oklch */ color: oklch(44.7% 0.194 302.2);
Tailwind
colors: {
  custom: {
    50: '#9b69c5',
    500: '#6b28ab',
    950: '#000000',
  },
}
SCSS
$custom: #6b28ab;
$custom-light: #9b69c5;
$custom-dark: #000000;
JSON
{
  "hex": "#6b28ab",
  "rgb": {
    "r": 107,
    "g": 40,
    "b": 171
  },
  "hsl": {
    "h": 270.687,
    "s": 62.085,
    "l": 41.373
  },
  "oklch": {
    "l": 0.44745,
    "c": 0.19439,
    "h": 302.2
  },
  "luminance": 0.07584
}

Semantic roles & 50–950 ramp

primary
#6B28AB
secondary
#96C46A
accent
#E54392
background
#FAF6FC
surface
#F3EBF8
border
#CDC6D1
text
#0F0713
muted
#7F7A82

Preview Lab

Preview with #6B28AB

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

Preview Lab → · Contrast checker → · Palette generator →

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