#6E28B2#6E28B2

#6E28B2 is a mid, highly saturated violet. Relative luminance 0.080; OKLCH L 45.7% C 0.202 H 301.7°. Best body text is #FFFFFF at 8.05:1 contrast (WCAG AA passes).

Color values

HEX#6E28B2
RGBrgb(110, 40, 178)
HSLhsl(270, 63%, 43%)
HSVhsv(270, 78%, 70%)
CMYKcmyk(38.2%, 77.5%, 0%, 30.2%)
CIE-LABlab(34.08, 55.67, -60.23)
CIE-LCHlch(34.08, 82.02, 312.75°)
OKLaboklab(45.7% 0.1061 -0.172)
OKLCHoklch(45.7% 0.202 301.7)
XYZxyz(15.2231, 8.0469, 42.8620)
Luminance0.0805 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6E28B2 #6CB228
analogous
#2928B2 #6E28B2 #B228B1
triadic
#6E28B2 #B26E28 #28B26E
tetradic
#6E28B2 #B22928 #6CB228 #28B1B2
square
#6E28B2 #B22928 #6CB228 #28B1B2
split-complementary
#6E28B2 #B1B228 #28B229
monochromatic
#30124E #4F1D80 #6E28B2 #8D43D5 #AB75E0

Accessibility & contrast

On white

8.05
#6E28B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#6E28B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6E28B2
8.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6E28B2#FFFFFF#000000##FFFFFF
##6E28B21.008.052.618.05
#FFFFFF8.051.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB6
Deuteranopia (green-blind)
#004FAF
Tritanopia (blue-blind)
#5F4C6C
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #6e28b2;
/* rgb */ color: rgb(110, 40, 178);
/* oklch */ color: oklch(45.7% 0.202 301.7);
Tailwind
colors: {
  custom: {
    50: '#9e6aca',
    500: '#6e28b2',
    950: '#000000',
  },
}
SCSS
$custom: #6e28b2;
$custom-light: #9e6aca;
$custom-dark: #000000;
JSON
{
  "hex": "#6e28b2",
  "rgb": {
    "r": 110,
    "g": 40,
    "b": 178
  },
  "hsl": {
    "h": 270.435,
    "s": 63.303,
    "l": 42.745
  },
  "oklch": {
    "l": 0.45699,
    "c": 0.20206,
    "h": 301.7
  },
  "luminance": 0.08047
}

Semantic roles & 50–950 ramp

primary
#6E28B2
secondary
#9AC76F
accent
#E64193
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#0F0713
muted
#7F7A82

Preview Lab

Preview with #6E28B2

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

Preview Lab → · Contrast checker → · Palette generator →

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