#6A23A2#6A23A2

#6A23A2 is a dark, vivid violet. Relative luminance 0.069; OKLCH L 43.4% C 0.190 H 304.8°. Best body text is #FFFFFF at 8.84:1 contrast (WCAG AA passes).

Color values

HEX#6A23A2
RGBrgb(106, 35, 162)
HSLhsl(274, 64%, 39%)
HSVhsv(274, 78%, 64%)
CMYKcmyk(34.6%, 78.4%, 0%, 36.5%)
CIE-LABlab(31.52, 53.21, -54.83)
CIE-LCHlch(31.52, 76.41, 314.14°)
OKLaboklab(43.38% 0.1086 -0.1562)
OKLCHoklch(43.38% 0.19 304.8)
XYZxyz(13.0650, 6.8749, 34.8141)
Luminance0.0688 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A23A2 #5BA223
analogous
#2A23A2 #6A23A2 #A2239A
triadic
#6A23A2 #A26A23 #23A26A
tetradic
#6A23A2 #A22A23 #5BA223 #239AA2
square
#6A23A2 #A22A23 #5BA223 #239AA2
split-complementary
#6A23A2 #9AA223 #23A22A
monochromatic
#280D3D #491870 #6A23A2 #8B30D2 #A762DD

Accessibility & contrast

On white

8.84
#6A23A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#6A23A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A23A2
8.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A23A2#FFFFFF#000000##FFFFFF
##6A23A21.008.842.388.84
#FFFFFF8.841.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A5
Deuteranopia (green-blind)
#004A9F
Tritanopia (blue-blind)
#5F4462
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #6a23a2;
/* rgb */ color: rgb(106, 35, 162);
/* oklch */ color: oklch(43.4% 0.190 304.8);
Tailwind
colors: {
  custom: {
    50: '#9a66be',
    500: '#6a23a2',
    950: '#000000',
  },
}
SCSS
$custom: #6a23a2;
$custom-light: #9a66be;
$custom-dark: #000000;
JSON
{
  "hex": "#6a23a2",
  "rgb": {
    "r": 106,
    "g": 35,
    "b": 162
  },
  "hsl": {
    "h": 273.543,
    "s": 64.467,
    "l": 38.627
  },
  "oklch": {
    "l": 0.43379,
    "c": 0.19026,
    "h": 304.8
  },
  "luminance": 0.06875
}

Semantic roles & 50–950 ramp

primary
#6A23A2
secondary
#8BC25E
accent
#E7408A
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0F0612
muted
#7E7A81

Preview Lab

Preview with #6A23A2

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

Preview Lab → · Contrast checker → · Palette generator →

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