#6A28A8#6A28A8

#6A28A8 is a dark, vivid violet. Relative luminance 0.074; OKLCH L 44.4% C 0.191 H 302.5°. Best body text is #FFFFFF at 8.46:1 contrast (WCAG AA passes).

Color values

HEX#6A28A8
RGBrgb(106, 40, 168)
HSLhsl(271, 62%, 41%)
HSVhsv(271, 76%, 66%)
CMYKcmyk(36.9%, 76.2%, 0%, 34.1%)
CIE-LABlab(32.72, 52.60, -56.49)
CIE-LCHlch(32.72, 77.19, 312.95°)
OKLaboklab(44.37% 0.1028 -0.1611)
OKLCHoklch(44.37% 0.191 302.5)
XYZxyz(13.7688, 7.4089, 37.7429)
Luminance0.0741 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A28A8 #66A828
analogous
#2A28A8 #6A28A8 #A828A6
triadic
#6A28A8 #A86A28 #28A86A
tetradic
#6A28A8 #A82A28 #66A828 #28A6A8
square
#6A28A8 #A82A28 #66A828 #28A6A8
split-complementary
#6A28A8 #A6A828 #28A82A
monochromatic
#2C1045 #4B1C77 #6A28A8 #893DD1 #A76EDC

Accessibility & contrast

On white

8.46
#6A28A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#6A28A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A28A8
8.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A28A8#FFFFFF#000000##FFFFFF
##6A28A81.008.462.488.46
#FFFFFF8.461.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.461.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #6a28a8;
/* rgb */ color: rgb(106, 40, 168);
/* oklch */ color: oklch(44.4% 0.191 302.5);
Tailwind
colors: {
  custom: {
    50: '#9a69c3',
    500: '#6a28a8',
    950: '#000000',
  },
}
SCSS
$custom: #6a28a8;
$custom-light: #9a69c3;
$custom-dark: #000000;
JSON
{
  "hex": "#6a28a8",
  "rgb": {
    "r": 106,
    "g": 40,
    "b": 168
  },
  "hsl": {
    "h": 270.938,
    "s": 61.538,
    "l": 40.784
  },
  "oklch": {
    "l": 0.44373,
    "c": 0.19111,
    "h": 302.5
  },
  "luminance": 0.07409
}

Semantic roles & 50–950 ramp

primary
#6A28A8
secondary
#94C369
accent
#E54391
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0F0713
muted
#7E7A82

Preview Lab

Preview with #6A28A8

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

Preview Lab → · Contrast checker → · Palette generator →

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