#6E23A2#6E23A2

#6E23A2 is a dark, vivid violet. Relative luminance 0.071; OKLCH L 43.9% C 0.191 H 306.7°. Best body text is #FFFFFF at 8.66:1 contrast (WCAG AA passes).

Color values

HEX#6E23A2
RGBrgb(110, 35, 162)
HSLhsl(275, 64%, 39%)
HSVhsv(275, 78%, 64%)
CMYKcmyk(32.1%, 78.4%, 0%, 36.5%)
CIE-LABlab(32.09, 53.92, -53.87)
CIE-LCHlch(32.09, 76.22, 315.02°)
OKLaboklab(43.9% 0.1143 -0.1532)
OKLCHoklch(43.9% 0.191 306.7)
XYZxyz(13.5516, 7.1258, 34.8369)
Luminance0.0713 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6E23A2 #57A223
analogous
#2E23A2 #6E23A2 #A22396
triadic
#6E23A2 #A26E23 #23A26E
tetradic
#6E23A2 #A22E23 #57A223 #2396A2
square
#6E23A2 #A22E23 #57A223 #2396A2
split-complementary
#6E23A2 #96A223 #23A22E
monochromatic
#2A0D3D #4C1870 #6E23A2 #9030D2 #AB62DD

Accessibility & contrast

On white

8.66
#6E23A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#6E23A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6E23A2
8.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6E23A2#FFFFFF#000000##FFFFFF
##6E23A21.008.662.438.66
#FFFFFF8.661.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A5
Deuteranopia (green-blind)
#004C9F
Tritanopia (blue-blind)
#654362
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #6e23a2;
/* rgb */ color: rgb(110, 35, 162);
/* oklch */ color: oklch(43.9% 0.191 306.7);
Tailwind
colors: {
  custom: {
    50: '#9d67be',
    500: '#6e23a2',
    950: '#000000',
  },
}
SCSS
$custom: #6e23a2;
$custom-light: #9d67be;
$custom-dark: #000000;
JSON
{
  "hex": "#6e23a2",
  "rgb": {
    "r": 110,
    "g": 35,
    "b": 162
  },
  "hsl": {
    "h": 275.433,
    "s": 64.467,
    "l": 38.627
  },
  "oklch": {
    "l": 0.43899,
    "c": 0.1912,
    "h": 306.7
  },
  "luminance": 0.07126
}

Semantic roles & 50–950 ramp

primary
#6E23A2
secondary
#87C25E
accent
#E74085
background
#FAF6FB
surface
#F3EBF7
border
#CDC6D0
text
#0F0612
muted
#7F7A81

Preview Lab

Preview with #6E23A2

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

Preview Lab → · Contrast checker → · Palette generator →

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