#6B28A8#6B28A8

#6B28A8 is a dark, vivid violet. Relative luminance 0.075; OKLCH L 44.5% C 0.191 H 303.0°. Best body text is #FFFFFF at 8.42:1 contrast (WCAG AA passes).

Color values

HEX#6B28A8
RGBrgb(107, 40, 168)
HSLhsl(271, 62%, 41%)
HSVhsv(271, 76%, 66%)
CMYKcmyk(36.3%, 76.2%, 0%, 34.1%)
CIE-LABlab(32.85, 52.77, -56.27)
CIE-LCHlch(32.85, 77.14, 313.16°)
OKLaboklab(44.5% 0.1042 -0.1604)
OKLCHoklch(44.5% 0.191 303)
XYZxyz(13.8884, 7.4705, 37.7485)
Luminance0.0747 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B28A8 #65A828
analogous
#2B28A8 #6B28A8 #A828A5
triadic
#6B28A8 #A86B28 #28A86B
tetradic
#6B28A8 #A82B28 #65A828 #28A5A8
square
#6B28A8 #A82B28 #65A828 #28A5A8
split-complementary
#6B28A8 #A5A828 #28A82B
monochromatic
#2C1045 #4C1C77 #6B28A8 #8A3DD1 #A86EDC

Accessibility & contrast

On white

8.42
#6B28A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#6B28A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6B28A8
8.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B28A8#FFFFFF#000000##FFFFFF
##6B28A81.008.422.498.42
#FFFFFF8.421.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CAC
Deuteranopia (green-blind)
#004DA5
Tritanopia (blue-blind)
#5E4967
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #6b28a8;
/* rgb */ color: rgb(107, 40, 168);
/* oklch */ color: oklch(44.5% 0.191 303.0);
Tailwind
colors: {
  custom: {
    50: '#9b69c3',
    500: '#6b28a8',
    950: '#000000',
  },
}
SCSS
$custom: #6b28a8;
$custom-light: #9b69c3;
$custom-dark: #000000;
JSON
{
  "hex": "#6b28a8",
  "rgb": {
    "r": 107,
    "g": 40,
    "b": 168
  },
  "hsl": {
    "h": 271.406,
    "s": 61.538,
    "l": 40.784
  },
  "oklch": {
    "l": 0.44497,
    "c": 0.19131,
    "h": 303
  },
  "luminance": 0.07471
}

Semantic roles & 50–950 ramp

primary
#6B28A8
secondary
#94C369
accent
#E54390
background
#FAF6FC
surface
#F3EBF8
border
#CDC6D1
text
#0F0713
muted
#7F7A82

Preview Lab

Preview with #6B28A8

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

Preview Lab → · Contrast checker → · Palette generator →

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