#6B28A5#6B28A5

#6B28A5 is a dark, vivid violet. Relative luminance 0.074; OKLCH L 44.3% C 0.188 H 303.9°. Best body text is #FFFFFF at 8.50:1 contrast (WCAG AA passes).

Color values

HEX#6B28A5
RGBrgb(107, 40, 165)
HSLhsl(272, 61%, 40%)
HSVhsv(272, 76%, 65%)
CMYKcmyk(35.2%, 75.8%, 0%, 35.3%)
CIE-LABlab(32.61, 52.06, -54.86)
CIE-LCHlch(32.61, 75.63, 313.50°)
OKLaboklab(44.25% 0.1049 -0.1563)
OKLCHoklch(44.25% 0.188 303.9)
XYZxyz(13.6122, 7.3600, 36.2935)
Luminance0.0736 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B28A5 #62A528
analogous
#2C28A5 #6B28A5 #A528A1
triadic
#6B28A5 #A56B28 #28A56B
tetradic
#6B28A5 #A52C28 #62A528 #28A1A5
square
#6B28A5 #A52C28 #62A528 #28A1A5
split-complementary
#6B28A5 #A1A528 #28A52C
monochromatic
#2B1042 #4B1C74 #6B28A5 #8A3BCF #A86CDB

Accessibility & contrast

On white

8.50
#6B28A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#6B28A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6B28A5
8.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B28A5#FFFFFF#000000##FFFFFF
##6B28A51.008.502.478.50
#FFFFFF8.501.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA9
Deuteranopia (green-blind)
#004DA2
Tritanopia (blue-blind)
#604765
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #6b28a5;
/* rgb */ color: rgb(107, 40, 165);
/* oklch */ color: oklch(44.3% 0.188 303.9);
Tailwind
colors: {
  custom: {
    50: '#9b69c1',
    500: '#6b28a5',
    950: '#000000',
  },
}
SCSS
$custom: #6b28a5;
$custom-light: #9b69c1;
$custom-dark: #000000;
JSON
{
  "hex": "#6b28a5",
  "rgb": {
    "r": 107,
    "g": 40,
    "b": 165
  },
  "hsl": {
    "h": 272.16,
    "s": 60.976,
    "l": 40.196
  },
  "oklch": {
    "l": 0.44251,
    "c": 0.18823,
    "h": 303.9
  },
  "luminance": 0.0736
}

Semantic roles & 50–950 ramp

primary
#6B28A5
secondary
#91C267
accent
#E4448E
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0F0712
muted
#7E7A81

Preview Lab

Preview with #6B28A5

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

Preview Lab → · Contrast checker → · Palette generator →

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