#6A28B0#6A28B0

#6A28B0 is a mid, vivid violet. Relative luminance 0.077; OKLCH L 45.0% C 0.199 H 300.4°. Best body text is #FFFFFF at 8.26:1 contrast (WCAG AA passes).

Color values

HEX#6A28B0
RGBrgb(106, 40, 176)
HSLhsl(269, 63%, 42%)
HSVhsv(269, 77%, 69%)
CMYKcmyk(39.8%, 77.3%, 0%, 31%)
CIE-LABlab(33.38, 54.53, -60.20)
CIE-LCHlch(33.38, 81.22, 312.17°)
OKLaboklab(45.05% 0.1008 -0.172)
OKLCHoklch(45.05% 0.199 300.4)
XYZxyz(14.5372, 7.7162, 41.7894)
Luminance0.0772 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A28B0 #6EB028
analogous
#282AB0 #6A28B0 #AE28B0
triadic
#6A28B0 #B06A28 #28B06A
tetradic
#6A28B0 #B0282A #6EB028 #28B0AE
square
#6A28B0 #B0282A #6EB028 #28B0AE
split-complementary
#6A28B0 #B0AE28 #2AB028
monochromatic
#2E114C #4C1D7E #6A28B0 #8841D4 #A873DF

Accessibility & contrast

On white

8.26
#6A28B0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#6A28B0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A28B0
8.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A28B0#FFFFFF#000000##FFFFFF
##6A28B01.008.262.548.26
#FFFFFF8.261.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB4
Deuteranopia (green-blind)
#004EAD
Tritanopia (blue-blind)
#5A4C6B
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #6a28b0;
/* rgb */ color: rgb(106, 40, 176);
/* oklch */ color: oklch(45.0% 0.199 300.4);
Tailwind
colors: {
  custom: {
    50: '#9b69c9',
    500: '#6a28b0',
    950: '#000000',
  },
}
SCSS
$custom: #6a28b0;
$custom-light: #9b69c9;
$custom-dark: #000000;
JSON
{
  "hex": "#6a28b0",
  "rgb": {
    "r": 106,
    "g": 40,
    "b": 176
  },
  "hsl": {
    "h": 269.118,
    "s": 62.963,
    "l": 42.353
  },
  "oklch": {
    "l": 0.45045,
    "c": 0.19936,
    "h": 300.4
  },
  "luminance": 0.07716
}

Semantic roles & 50–950 ramp

primary
#6A28B0
secondary
#9BC66D
accent
#E64296
background
#FAF6FC
surface
#F3EBF8
border
#CDC6D1
text
#0F0713
muted
#7F7A82

Preview Lab

Preview with #6A28B0

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

Preview Lab → · Contrast checker → · Palette generator →

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