#6C28B2#6C28B2

#6C28B2 is a mid, highly saturated violet. Relative luminance 0.079; OKLCH L 45.5% C 0.202 H 300.8°. Best body text is #FFFFFF at 8.13:1 contrast (WCAG AA passes).

Color values

HEX#6C28B2
RGBrgb(108, 40, 178)
HSLhsl(270, 63%, 43%)
HSVhsv(270, 78%, 70%)
CMYKcmyk(39.3%, 77.5%, 0%, 30.2%)
CIE-LABlab(33.82, 55.34, -60.68)
CIE-LCHlch(33.82, 82.12, 312.37°)
OKLaboklab(45.46% 0.1032 -0.1733)
OKLCHoklch(45.46% 0.202 300.8)
XYZxyz(14.9770, 7.9200, 42.8505)
Luminance0.0792 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C28B2 #6EB228
analogous
#2829B2 #6C28B2 #B128B2
triadic
#6C28B2 #B26C28 #28B26C
tetradic
#6C28B2 #B22829 #6EB228 #28B2B1
square
#6C28B2 #B22829 #6EB228 #28B2B1
split-complementary
#6C28B2 #B2B128 #29B228
monochromatic
#2F124E #4E1D80 #6C28B2 #8B43D5 #A975E0

Accessibility & contrast

On white

8.13
#6C28B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#6C28B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6C28B2
8.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C28B2#FFFFFF#000000##FFFFFF
##6C28B21.008.132.588.13
#FFFFFF8.131.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB6
Deuteranopia (green-blind)
#004FAF
Tritanopia (blue-blind)
#5C4D6C
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #6c28b2;
/* rgb */ color: rgb(108, 40, 178);
/* oklch */ color: oklch(45.5% 0.202 300.8);
Tailwind
colors: {
  custom: {
    50: '#9d6aca',
    500: '#6c28b2',
    950: '#000000',
  },
}
SCSS
$custom: #6c28b2;
$custom-light: #9d6aca;
$custom-dark: #000000;
JSON
{
  "hex": "#6c28b2",
  "rgb": {
    "r": 108,
    "g": 40,
    "b": 178
  },
  "hsl": {
    "h": 269.565,
    "s": 63.303,
    "l": 42.745
  },
  "oklch": {
    "l": 0.45456,
    "c": 0.20172,
    "h": 300.8
  },
  "luminance": 0.0792
}

Semantic roles & 50–950 ramp

primary
#6C28B2
secondary
#9CC76F
accent
#E64195
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#0F0713
muted
#7F7A82

Preview Lab

Preview with #6C28B2

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

Preview Lab → · Contrast checker → · Palette generator →

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