#6E28AB#6E28AB

#6E28AB is a mid, vivid violet. Relative luminance 0.078; OKLCH L 45.1% C 0.195 H 303.6°. Best body text is #FFFFFF at 8.22:1 contrast (WCAG AA passes).

Color values

HEX#6E28AB
RGBrgb(110, 40, 171)
HSLhsl(272, 62%, 41%)
HSVhsv(272, 77%, 67%)
CMYKcmyk(35.7%, 76.6%, 0%, 32.9%)
CIE-LABlab(33.51, 54.01, -56.99)
CIE-LCHlch(33.51, 78.52, 313.46°)
OKLaboklab(45.12% 0.1078 -0.1624)
OKLCHoklch(45.12% 0.195 303.6)
XYZxyz(14.5382, 7.7729, 39.2546)
Luminance0.0777 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6E28AB #65AB28
analogous
#2D28AB #6E28AB #AB28A7
triadic
#6E28AB #AB6E28 #28AB6E
tetradic
#6E28AB #AB2D28 #65AB28 #28A7AB
square
#6E28AB #AB2D28 #65AB28 #28A7AB
split-complementary
#6E28AB #A7AB28 #28AB2D
monochromatic
#2E1148 #4E1C79 #6E28AB #8D3ED2 #AA70DE

Accessibility & contrast

On white

8.22
#6E28AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#6E28AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6E28AB
8.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6E28AB#FFFFFF#000000##FFFFFF
##6E28AB1.008.222.558.22
#FFFFFF8.221.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DAF
Deuteranopia (green-blind)
#004FA8
Tritanopia (blue-blind)
#624A68
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #6e28ab;
/* rgb */ color: rgb(110, 40, 171);
/* oklch */ color: oklch(45.1% 0.195 303.6);
Tailwind
colors: {
  custom: {
    50: '#9d6ac5',
    500: '#6e28ab',
    950: '#000000',
  },
}
SCSS
$custom: #6e28ab;
$custom-light: #9d6ac5;
$custom-dark: #000000;
JSON
{
  "hex": "#6e28ab",
  "rgb": {
    "r": 110,
    "g": 40,
    "b": 171
  },
  "hsl": {
    "h": 272.061,
    "s": 62.085,
    "l": 41.373
  },
  "oklch": {
    "l": 0.45117,
    "c": 0.19498,
    "h": 303.6
  },
  "luminance": 0.07773
}

Semantic roles & 50–950 ramp

primary
#6E28AB
secondary
#94C46A
accent
#E5438E
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#0F0713
muted
#7F7A82

Preview Lab

Preview with #6E28AB

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

Preview Lab → · Contrast checker → · Palette generator →

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