#6A28A3#6A28A3

#6A28A3 is a dark, vivid violet. Relative luminance 0.072; OKLCH L 44.0% C 0.186 H 304.0°. Best body text is #FFFFFF at 8.59:1 contrast (WCAG AA passes).

Color values

HEX#6A28A3
RGBrgb(106, 40, 163)
HSLhsl(272, 61%, 40%)
HSVhsv(272, 75%, 64%)
CMYKcmyk(35%, 75.5%, 0%, 36.1%)
CIE-LABlab(32.32, 51.40, -54.14)
CIE-LCHlch(32.32, 74.65, 313.51°)
OKLaboklab(43.96% 0.1039 -0.1542)
OKLCHoklch(43.96% 0.186 304)
XYZxyz(13.3120, 7.2261, 35.3367)
Luminance0.0723 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A28A3 #61A328
analogous
#2C28A3 #6A28A3 #A3289F
triadic
#6A28A3 #A36A28 #28A36A
tetradic
#6A28A3 #A32C28 #61A328 #289FA3
square
#6A28A3 #A32C28 #61A328 #289FA3
split-complementary
#6A28A3 #9FA328 #28A32C
monochromatic
#2A1041 #4A1C72 #6A28A3 #8A3ACF #A76BDB

Accessibility & contrast

On white

8.59
#6A28A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#6A28A3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A28A3
8.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A28A3#FFFFFF#000000##FFFFFF
##6A28A31.008.592.458.59
#FFFFFF8.591.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA6
Deuteranopia (green-blind)
#004CA1
Tritanopia (blue-blind)
#5F4764
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #6a28a3;
/* rgb */ color: rgb(106, 40, 163);
/* oklch */ color: oklch(44.0% 0.186 304.0);
Tailwind
colors: {
  custom: {
    50: '#9a69bf',
    500: '#6a28a3',
    950: '#000000',
  },
}
SCSS
$custom: #6a28a3;
$custom-light: #9a69bf;
$custom-dark: #000000;
JSON
{
  "hex": "#6a28a3",
  "rgb": {
    "r": 106,
    "g": 40,
    "b": 163
  },
  "hsl": {
    "h": 272.195,
    "s": 60.591,
    "l": 39.804
  },
  "oklch": {
    "l": 0.43963,
    "c": 0.18595,
    "h": 304
  },
  "luminance": 0.07226
}

Semantic roles & 50–950 ramp

primary
#6A28A3
secondary
#90C166
accent
#E4448E
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0F0712
muted
#7E7A81

Preview Lab

Preview with #6A28A3

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

Preview Lab → · Contrast checker → · Palette generator →

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