#6E28A2#6E28A2

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

Color values

HEX#6E28A2
RGBrgb(110, 40, 162)
HSLhsl(274, 60%, 40%)
HSVhsv(274, 75%, 64%)
CMYKcmyk(32.1%, 75.3%, 0%, 36.5%)
CIE-LABlab(32.79, 51.91, -52.74)
CIE-LCHlch(32.79, 74.00, 314.55°)
OKLaboklab(44.39% 0.1098 -0.1499)
OKLCHoklch(44.39% 0.186 306.2)
XYZxyz(13.7094, 7.4413, 34.8895)
Luminance0.0744 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6E28A2 #5CA228
analogous
#3128A2 #6E28A2 #A22899
triadic
#6E28A2 #A26E28 #28A26E
tetradic
#6E28A2 #A23128 #5CA228 #2899A2
square
#6E28A2 #A23128 #5CA228 #2899A2
split-complementary
#6E28A2 #99A228 #28A231
monochromatic
#2B1040 #4D1C71 #6E28A2 #8F39CE #AA6ADA

Accessibility & contrast

On white

8.44
#6E28A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#6E28A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6E28A2
8.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6E28A2#FFFFFF#000000##FFFFFF
##6E28A21.008.442.498.44
#FFFFFF8.441.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA5
Deuteranopia (green-blind)
#004DA0
Tritanopia (blue-blind)
#654663
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #6e28a2;
/* rgb */ color: rgb(110, 40, 162);
/* oklch */ color: oklch(44.4% 0.186 306.2);
Tailwind
colors: {
  custom: {
    50: '#9d69be',
    500: '#6e28a2',
    950: '#000000',
  },
}
SCSS
$custom: #6e28a2;
$custom-light: #9d69be;
$custom-dark: #000000;
JSON
{
  "hex": "#6e28a2",
  "rgb": {
    "r": 110,
    "g": 40,
    "b": 162
  },
  "hsl": {
    "h": 274.426,
    "s": 60.396,
    "l": 39.608
  },
  "oklch": {
    "l": 0.44391,
    "c": 0.18586,
    "h": 306.2
  },
  "luminance": 0.07441
}

Semantic roles & 50–950 ramp

primary
#6E28A2
secondary
#8CC165
accent
#E44488
background
#FAF6FB
surface
#F3EBF7
border
#CDC6D0
text
#0F0712
muted
#7F7A81

Preview Lab

Preview with #6E28A2

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

Preview Lab → · Contrast checker → · Palette generator →

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