#6E28A5#6E28A5

#6E28A5 is a dark, vivid violet. Relative luminance 0.075; OKLCH L 44.6% C 0.189 H 305.3°. Best body text is #FFFFFF at 8.37:1 contrast (WCAG AA passes).

Color values

HEX#6E28A5
RGBrgb(110, 40, 165)
HSLhsl(274, 61%, 40%)
HSVhsv(274, 76%, 65%)
CMYKcmyk(33.3%, 75.8%, 0%, 35.3%)
CIE-LABlab(33.03, 52.61, -54.17)
CIE-LCHlch(33.03, 75.51, 314.16°)
OKLaboklab(44.63% 0.1092 -0.1541)
OKLCHoklch(44.63% 0.189 305.3)
XYZxyz(13.9792, 7.5493, 36.3107)
Luminance0.0755 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6E28A5 #5FA528
analogous
#2F28A5 #6E28A5 #A5289E
triadic
#6E28A5 #A56E28 #28A56E
tetradic
#6E28A5 #A52F28 #5FA528 #289EA5
square
#6E28A5 #A52F28 #5FA528 #289EA5
split-complementary
#6E28A5 #9EA528 #28A52F
monochromatic
#2C1042 #4D1C74 #6E28A5 #8E3BCF #AA6CDB

Accessibility & contrast

On white

8.37
#6E28A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#6E28A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6E28A5
8.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6E28A5#FFFFFF#000000##FFFFFF
##6E28A51.008.372.518.37
#FFFFFF8.371.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA9
Deuteranopia (green-blind)
#004EA2
Tritanopia (blue-blind)
#644765
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #6e28a5;
/* rgb */ color: rgb(110, 40, 165);
/* oklch */ color: oklch(44.6% 0.189 305.3);
Tailwind
colors: {
  custom: {
    50: '#9d69c1',
    500: '#6e28a5',
    950: '#000000',
  },
}
SCSS
$custom: #6e28a5;
$custom-light: #9d69c1;
$custom-dark: #000000;
JSON
{
  "hex": "#6e28a5",
  "rgb": {
    "r": 110,
    "g": 40,
    "b": 165
  },
  "hsl": {
    "h": 273.6,
    "s": 60.976,
    "l": 40.196
  },
  "oklch": {
    "l": 0.4463,
    "c": 0.1889,
    "h": 305.3
  },
  "luminance": 0.07549
}

Semantic roles & 50–950 ramp

primary
#6E28A5
secondary
#8FC267
accent
#E4448A
background
#FAF6FB
surface
#F3EBF7
border
#CDC6D0
text
#0F0712
muted
#7F7A81

Preview Lab

Preview with #6E28A5

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

Preview Lab → · Contrast checker → · Palette generator →

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