#6A28AB#6A28AB

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

Color values

HEX#6A28AB
RGBrgb(106, 40, 171)
HSLhsl(270, 62%, 41%)
HSVhsv(270, 77%, 67%)
CMYKcmyk(38%, 76.6%, 0%, 32.9%)
CIE-LABlab(32.97, 53.32, -57.89)
CIE-LCHlch(32.97, 78.70, 312.65°)
OKLaboklab(44.62% 0.1021 -0.1652)
OKLCHoklch(44.62% 0.194 301.7)
XYZxyz(14.0516, 7.5220, 39.2318)
Luminance0.0752 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A28AB #69AB28
analogous
#2928AB #6A28AB #AB28AB
triadic
#6A28AB #AB6A28 #28AB6A
tetradic
#6A28AB #AB2928 #69AB28 #28ABAB
square
#6A28AB #AB2928 #69AB28 #28ABAB
split-complementary
#6A28AB #ABAB28 #28AB29
monochromatic
#2D1148 #4B1C79 #6A28AB #893ED2 #A770DE

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##6A28AB#FFFFFF#000000##FFFFFF
##6A28AB1.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)
#004DAF
Deuteranopia (green-blind)
#004DA8
Tritanopia (blue-blind)
#5C4A68
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #6a28ab;
/* rgb */ color: rgb(106, 40, 171);
/* oklch */ color: oklch(44.6% 0.194 301.7);
Tailwind
colors: {
  custom: {
    50: '#9b69c5',
    500: '#6a28ab',
    950: '#000000',
  },
}
SCSS
$custom: #6a28ab;
$custom-light: #9b69c5;
$custom-dark: #000000;
JSON
{
  "hex": "#6a28ab",
  "rgb": {
    "r": 106,
    "g": 40,
    "b": 171
  },
  "hsl": {
    "h": 270.229,
    "s": 62.085,
    "l": 41.373
  },
  "oklch": {
    "l": 0.44623,
    "c": 0.19421,
    "h": 301.7
  },
  "luminance": 0.07522
}

Semantic roles & 50–950 ramp

primary
#6A28AB
secondary
#97C46A
accent
#E54393
background
#FAF6FC
surface
#F3EBF8
border
#CDC6D1
text
#0F0713
muted
#7F7A82

Preview Lab

Preview with #6A28AB

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

Preview Lab → · Contrast checker → · Palette generator →

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