#6A23A1#6A23A1

#6A23A1 is a dark, vivid violet. Relative luminance 0.068; OKLCH L 43.3% C 0.189 H 305.1°. Best body text is #FFFFFF at 8.87:1 contrast (WCAG AA passes).

Color values

HEX#6A23A1
RGBrgb(106, 35, 161)
HSLhsl(274, 64%, 38%)
HSVhsv(274, 78%, 63%)
CMYKcmyk(34.2%, 78.3%, 0%, 36.9%)
CIE-LABlab(31.44, 52.98, -54.36)
CIE-LCHlch(31.44, 75.91, 314.27°)
OKLaboklab(43.3% 0.1089 -0.1548)
OKLCHoklch(43.3% 0.189 305.1)
XYZxyz(12.9765, 6.8395, 34.3478)
Luminance0.0684 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A23A1 #5AA123
analogous
#2B23A1 #6A23A1 #A12399
triadic
#6A23A1 #A16A23 #23A16A
tetradic
#6A23A1 #A12B23 #5AA123 #2399A1
square
#6A23A1 #A12B23 #5AA123 #2399A1
split-complementary
#6A23A1 #99A123 #23A12B
monochromatic
#280D3C #49186F #6A23A1 #8B2FD2 #A762DD

Accessibility & contrast

On white

8.87
#6A23A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#6A23A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A23A1
8.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A23A1#FFFFFF#000000##FFFFFF
##6A23A11.008.872.378.87
#FFFFFF8.871.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A4
Deuteranopia (green-blind)
#004A9F
Tritanopia (blue-blind)
#604361
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #6a23a1;
/* rgb */ color: rgb(106, 35, 161);
/* oklch */ color: oklch(43.3% 0.189 305.1);
Tailwind
colors: {
  custom: {
    50: '#9a66be',
    500: '#6a23a1',
    950: '#000000',
  },
}
SCSS
$custom: #6a23a1;
$custom-light: #9a66be;
$custom-dark: #000000;
JSON
{
  "hex": "#6a23a1",
  "rgb": {
    "r": 106,
    "g": 35,
    "b": 161
  },
  "hsl": {
    "h": 273.81,
    "s": 64.286,
    "l": 38.431
  },
  "oklch": {
    "l": 0.43296,
    "c": 0.18926,
    "h": 305.1
  },
  "luminance": 0.06839
}

Semantic roles & 50–950 ramp

primary
#6A23A1
secondary
#8AC25E
accent
#E74189
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0F0612
muted
#7E7A81

Preview Lab

Preview with #6A23A1

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

Preview Lab → · Contrast checker → · Palette generator →

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