#6E28AF#6E28AF

#6E28AF is a mid, vivid violet. Relative luminance 0.079; OKLCH L 45.4% C 0.199 H 302.5°. Best body text is #FFFFFF at 8.12:1 contrast (WCAG AA passes).

Color values

HEX#6E28AF
RGBrgb(110, 40, 175)
HSLhsl(271, 63%, 42%)
HSVhsv(271, 77%, 69%)
CMYKcmyk(37.1%, 77.1%, 0%, 31.4%)
CIE-LABlab(33.83, 54.96, -58.85)
CIE-LCHlch(33.83, 80.52, 313.04°)
OKLaboklab(45.45% 0.1069 -0.1679)
OKLCHoklch(45.45% 0.199 302.5)
XYZxyz(14.9252, 7.9277, 41.2930)
Luminance0.0793 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6E28AF #69AF28
analogous
#2A28AF #6E28AF #AF28AD
triadic
#6E28AF #AF6E28 #28AF6E
tetradic
#6E28AF #AF2A28 #69AF28 #28ADAF
square
#6E28AF #AF2A28 #69AF28 #28ADAF
split-complementary
#6E28AF #ADAF28 #28AF2A
monochromatic
#2F114B #4F1D7D #6E28AF #8D41D4 #AB73DF

Accessibility & contrast

On white

8.12
#6E28AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#6E28AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6E28AF
8.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6E28AF#FFFFFF#000000##FFFFFF
##6E28AF1.008.122.598.12
#FFFFFF8.121.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB3
Deuteranopia (green-blind)
#004FAC
Tritanopia (blue-blind)
#604B6B
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #6e28af;
/* rgb */ color: rgb(110, 40, 175);
/* oklch */ color: oklch(45.4% 0.199 302.5);
Tailwind
colors: {
  custom: {
    50: '#9e6ac8',
    500: '#6e28af',
    950: '#000000',
  },
}
SCSS
$custom: #6e28af;
$custom-light: #9e6ac8;
$custom-dark: #000000;
JSON
{
  "hex": "#6e28af",
  "rgb": {
    "r": 110,
    "g": 40,
    "b": 175
  },
  "hsl": {
    "h": 271.111,
    "s": 62.791,
    "l": 42.157
  },
  "oklch": {
    "l": 0.45447,
    "c": 0.19903,
    "h": 302.5
  },
  "luminance": 0.07928
}

Semantic roles & 50–950 ramp

primary
#6E28AF
secondary
#98C66D
accent
#E64291
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#0F0713
muted
#7F7A82

Preview Lab

Preview with #6E28AF

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

Preview Lab → · Contrast checker → · Palette generator →

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