#6B28B2#6B28B2

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

Color values

HEX#6B28B2
RGBrgb(107, 40, 178)
HSLhsl(269, 63%, 43%)
HSVhsv(269, 78%, 70%)
CMYKcmyk(39.9%, 77.5%, 0%, 30.2%)
CIE-LABlab(33.68, 55.18, -60.89)
CIE-LCHlch(33.68, 82.17, 312.18°)
OKLaboklab(45.34% 0.1017 -0.174)
OKLCHoklch(45.34% 0.202 300.3)
XYZxyz(14.8561, 7.8576, 42.8448)
Luminance0.0786 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B28B2 #6FB228
analogous
#282AB2 #6B28B2 #B028B2
triadic
#6B28B2 #B26B28 #28B26B
tetradic
#6B28B2 #B2282A #6FB228 #28B2B0
square
#6B28B2 #B2282A #6FB228 #28B2B0
split-complementary
#6B28B2 #B2B028 #2AB228
monochromatic
#2F124E #4D1D80 #6B28B2 #8943D5 #A975E0

Accessibility & contrast

On white

8.17
#6B28B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#6B28B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6B28B2
8.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B28B2#FFFFFF#000000##FFFFFF
##6B28B21.008.172.578.17
#FFFFFF8.171.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB6
Deuteranopia (green-blind)
#004EAF
Tritanopia (blue-blind)
#5A4D6C
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #6b28b2;
/* rgb */ color: rgb(107, 40, 178);
/* oklch */ color: oklch(45.3% 0.202 300.3);
Tailwind
colors: {
  custom: {
    50: '#9c6aca',
    500: '#6b28b2',
    950: '#000000',
  },
}
SCSS
$custom: #6b28b2;
$custom-light: #9c6aca;
$custom-dark: #000000;
JSON
{
  "hex": "#6b28b2",
  "rgb": {
    "r": 107,
    "g": 40,
    "b": 178
  },
  "hsl": {
    "h": 269.13,
    "s": 63.303,
    "l": 42.745
  },
  "oklch": {
    "l": 0.45336,
    "c": 0.20156,
    "h": 300.3
  },
  "luminance": 0.07858
}

Semantic roles & 50–950 ramp

primary
#6B28B2
secondary
#9CC76F
accent
#E64196
background
#FAF6FC
surface
#F4EBF9
border
#CEC6D2
text
#0F0713
muted
#7F7A82

Preview Lab

Preview with #6B28B2

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

Preview Lab → · Contrast checker → · Palette generator →

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