#6B28BD#6B28BD

#6B28BD is a mid, highly saturated violet. Relative luminance 0.083; OKLCH L 46.3% C 0.213 H 297.6°. Best body text is #FFFFFF at 7.88:1 contrast (WCAG AA passes).

Color values

HEX#6B28BD
RGBrgb(107, 40, 189)
HSLhsl(267, 65%, 45%)
HSVhsv(267, 79%, 74%)
CMYKcmyk(43.4%, 78.8%, 0%, 25.9%)
CIE-LABlab(34.63, 57.85, -65.85)
CIE-LCHlch(34.63, 87.66, 311.30°)
OKLaboklab(46.29% 0.0986 -0.1886)
OKLCHoklch(46.29% 0.213 297.6)
XYZxyz(16.0051, 8.3172, 48.8964)
Luminance0.0832 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B28BD #7ABD28
analogous
#282FBD #6B28BD #B628BD
triadic
#6B28BD #BD6B28 #28BD6B
tetradic
#6B28BD #BD282F #7ABD28 #28BDB6
square
#6B28BD #BD282F #7ABD28 #28BDB6
split-complementary
#6B28BD #BDB628 #2FBD28
monochromatic
#321358 #4E1D8A #6B28BD #8A4AD9 #AB7CE3

Accessibility & contrast

On white

7.88
#6B28BD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#6B28BD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6B28BD
7.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B28BD#FFFFFF#000000##FFFFFF
##6B28BD1.007.882.667.88
#FFFFFF7.881.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052C1
Deuteranopia (green-blind)
#0050BA
Tritanopia (blue-blind)
#565273
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #6b28bd;
/* rgb */ color: rgb(107, 40, 189);
/* oklch */ color: oklch(46.3% 0.213 297.6);
Tailwind
colors: {
  custom: {
    50: '#9d6ad2',
    500: '#6b28bd',
    950: '#000000',
  },
}
SCSS
$custom: #6b28bd;
$custom-light: #9d6ad2;
$custom-dark: #000000;
JSON
{
  "hex": "#6b28bd",
  "rgb": {
    "r": 107,
    "g": 40,
    "b": 189
  },
  "hsl": {
    "h": 266.98,
    "s": 65.066,
    "l": 44.902
  },
  "oklch": {
    "l": 0.46292,
    "c": 0.21281,
    "h": 297.6
  },
  "luminance": 0.08318
}

Semantic roles & 50–950 ramp

primary
#6B28BD
secondary
#A5CB75
accent
#E8409C
background
#FAF6FD
surface
#F4ECFA
border
#CEC7D3
text
#0F0714
muted
#7F7A83

Preview Lab

Preview with #6B28BD

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

Preview Lab → · Contrast checker → · Palette generator →

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