#6D23A1#6D23A1

#6D23A1 is a dark, vivid violet. Relative luminance 0.070; OKLCH L 43.7% C 0.190 H 306.6°. Best body text is #FFFFFF at 8.73:1 contrast (WCAG AA passes).

Color values

HEX#6D23A1
RGBrgb(109, 35, 161)
HSLhsl(275, 64%, 38%)
HSVhsv(275, 78%, 63%)
CMYKcmyk(32.3%, 78.3%, 0%, 36.9%)
CIE-LABlab(31.87, 53.51, -53.64)
CIE-LCHlch(31.87, 75.77, 314.93°)
OKLaboklab(43.69% 0.1132 -0.1526)
OKLCHoklch(43.69% 0.19 306.6)
XYZxyz(13.3393, 7.0266, 34.3648)
Luminance0.0703 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6D23A1 #57A123
analogous
#2E23A1 #6D23A1 #A12396
triadic
#6D23A1 #A16D23 #23A16D
tetradic
#6D23A1 #A12E23 #57A123 #2396A1
square
#6D23A1 #A12E23 #57A123 #2396A1
split-complementary
#6D23A1 #96A123 #23A12E
monochromatic
#290D3C #4B186F #6D23A1 #8F2FD2 #AA62DD

Accessibility & contrast

On white

8.73
#6D23A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#6D23A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6D23A1
8.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6D23A1#FFFFFF#000000##FFFFFF
##6D23A11.008.732.418.73
#FFFFFF8.731.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A4
Deuteranopia (green-blind)
#004B9E
Tritanopia (blue-blind)
#644361
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #6d23a1;
/* rgb */ color: rgb(109, 35, 161);
/* oklch */ color: oklch(43.7% 0.190 306.6);
Tailwind
colors: {
  custom: {
    50: '#9c67be',
    500: '#6d23a1',
    950: '#000000',
  },
}
SCSS
$custom: #6d23a1;
$custom-light: #9c67be;
$custom-dark: #000000;
JSON
{
  "hex": "#6d23a1",
  "rgb": {
    "r": 109,
    "g": 35,
    "b": 161
  },
  "hsl": {
    "h": 275.238,
    "s": 64.286,
    "l": 38.431
  },
  "oklch": {
    "l": 0.43687,
    "c": 0.18998,
    "h": 306.6
  },
  "luminance": 0.07026
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #6D23A1

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

Preview Lab → · Contrast checker → · Palette generator →

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