#6A33A2#6A33A2

#6A33A2 is a mid, vivid violet. Relative luminance 0.080; OKLCH L 45.2% C 0.171 H 302.8°. Best body text is #FFFFFF at 8.05:1 contrast (WCAG AA passes).

Color values

HEX#6A33A2
RGBrgb(106, 51, 162)
HSLhsl(270, 52%, 42%)
HSVhsv(270, 69%, 64%)
CMYKcmyk(34.6%, 68.5%, 0%, 36.5%)
CIE-LABlab(34.07, 46.02, -50.69)
CIE-LCHlch(34.07, 68.47, 312.23°)
OKLaboklab(45.18% 0.0928 -0.1441)
OKLCHoklch(45.18% 0.171 302.8)
XYZxyz(13.6477, 8.0404, 35.0084)
Luminance0.0804 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A33A2 #6BA233
analogous
#3333A2 #6A33A2 #A233A2
triadic
#6A33A2 #A26A33 #33A26A
tetradic
#6A33A2 #A23333 #6BA233 #33A2A2
square
#6A33A2 #A23333 #6BA233 #33A2A2
split-complementary
#6A33A2 #A2A233 #33A233
monochromatic
#2D1645 #4C2473 #6A33A2 #894CC7 #A77AD5

Accessibility & contrast

On white

8.05
#6A33A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#6A33A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A33A2
8.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A33A2#FFFFFF#000000##FFFFFF
##6A33A21.008.052.618.05
#FFFFFF8.051.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA5
Deuteranopia (green-blind)
#0050A0
Tritanopia (blue-blind)
#5F4C66
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #6a33a2;
/* rgb */ color: rgb(106, 51, 162);
/* oklch */ color: oklch(45.2% 0.171 302.8);
Tailwind
colors: {
  custom: {
    50: '#996fbe',
    500: '#6a33a2',
    950: '#000000',
  },
}
SCSS
$custom: #6a33a2;
$custom-light: #996fbe;
$custom-dark: #000000;
JSON
{
  "hex": "#6a33a2",
  "rgb": {
    "r": 106,
    "g": 51,
    "b": 162
  },
  "hsl": {
    "h": 269.73,
    "s": 52.113,
    "l": 41.765
  },
  "oklch": {
    "l": 0.45183,
    "c": 0.17142,
    "h": 302.8
  },
  "luminance": 0.0804
}

Semantic roles & 50–950 ramp

primary
#6A33A2
secondary
#99BE73
accent
#DC4C95
background
#F9F6FB
surface
#F2ECF7
border
#CCC7D0
text
#0E0712
muted
#7E7A81

Preview Lab

Preview with #6A33A2

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

Preview Lab → · Contrast checker → · Palette generator →

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