#6E23A8#6E23A8

#6E23A8 is a dark, vivid violet. Relative luminance 0.073; OKLCH L 44.4% C 0.197 H 304.9°. Best body text is #FFFFFF at 8.51:1 contrast (WCAG AA passes).

Color values

HEX#6E23A8
RGBrgb(110, 35, 168)
HSLhsl(274, 66%, 40%)
HSVhsv(274, 79%, 66%)
CMYKcmyk(34.5%, 79.2%, 0%, 34.1%)
CIE-LABlab(32.58, 55.28, -56.70)
CIE-LCHlch(32.58, 79.19, 314.27°)
OKLaboklab(44.39% 0.1129 -0.1616)
OKLCHoklch(44.39% 0.197 304.9)
XYZxyz(14.0977, 7.3443, 37.7131)
Luminance0.0734 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6E23A8 #5DA823
analogous
#2C23A8 #6E23A8 #A8239F
triadic
#6E23A8 #A86E23 #23A86E
tetradic
#6E23A8 #A82C23 #5DA823 #239FA8
square
#6E23A8 #A82C23 #5DA823 #239FA8
split-complementary
#6E23A8 #9FA823 #23A82C
monochromatic
#2C0E43 #4D1875 #6E23A8 #8E34D5 #AA66DF

Accessibility & contrast

On white

8.51
#6E23A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#6E23A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6E23A8
8.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6E23A8#FFFFFF#000000##FFFFFF
##6E23A81.008.512.478.51
#FFFFFF8.511.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BAC
Deuteranopia (green-blind)
#004DA5
Tritanopia (blue-blind)
#634665
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #6e23a8;
/* rgb */ color: rgb(110, 35, 168);
/* oklch */ color: oklch(44.4% 0.197 304.9);
Tailwind
colors: {
  custom: {
    50: '#9d67c3',
    500: '#6e23a8',
    950: '#000000',
  },
}
SCSS
$custom: #6e23a8;
$custom-light: #9d67c3;
$custom-dark: #000000;
JSON
{
  "hex": "#6e23a8",
  "rgb": {
    "r": 110,
    "g": 35,
    "b": 168
  },
  "hsl": {
    "h": 273.835,
    "s": 65.517,
    "l": 39.804
  },
  "oklch": {
    "l": 0.44391,
    "c": 0.19707,
    "h": 304.9
  },
  "luminance": 0.07344
}

Semantic roles & 50–950 ramp

primary
#6E23A8
secondary
#8DC562
accent
#E83F89
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#0F0613
muted
#7F7A82

Preview Lab

Preview with #6E23A8

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

Preview Lab → · Contrast checker → · Palette generator →

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