#6A34AC#6A34AC

#6A34AC is a mid, vivid violet. Relative luminance 0.085; OKLCH L 46.1% C 0.181 H 299.8°. Best body text is #FFFFFF at 7.78:1 contrast (WCAG AA passes).

Color values

HEX#6A34AC
RGBrgb(106, 52, 172)
HSLhsl(267, 54%, 44%)
HSVhsv(267, 70%, 67%)
CMYKcmyk(38.4%, 69.8%, 0%, 32.5%)
CIE-LABlab(35.00, 48.05, -55.18)
CIE-LCHlch(35.00, 73.17, 311.05°)
OKLaboklab(46.09% 0.0903 -0.1573)
OKLCHoklch(46.09% 0.181 299.8)
XYZxyz(14.6164, 8.4986, 39.8921)
Luminance0.0850 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A34AC #76AC34
analogous
#343AAC #6A34AC #A634AC
triadic
#6A34AC #AC6A34 #34AC6A
tetradic
#6A34AC #AC343A #76AC34 #34ACA6
square
#6A34AC #AC343A #76AC34 #34ACA6
split-complementary
#6A34AC #ACA634 #3AAC34
monochromatic
#30184E #4D267D #6A34AC #8952CB #A981D9

Accessibility & contrast

On white

7.78
#6A34AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#6A34AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A34AC
7.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A34AC#FFFFFF#000000##FFFFFF
##6A34AC1.007.782.707.78
#FFFFFF7.781.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B0
Deuteranopia (green-blind)
#0051AA
Tritanopia (blue-blind)
#5B516C
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #6a34ac;
/* rgb */ color: rgb(106, 52, 172);
/* oklch */ color: oklch(46.1% 0.181 299.8);
Tailwind
colors: {
  custom: {
    50: '#9a70c6',
    500: '#6a34ac',
    950: '#000000',
  },
}
SCSS
$custom: #6a34ac;
$custom-light: #9a70c6;
$custom-dark: #000000;
JSON
{
  "hex": "#6a34ac",
  "rgb": {
    "r": 106,
    "g": 52,
    "b": 172
  },
  "hsl": {
    "h": 267,
    "s": 53.571,
    "l": 43.922
  },
  "oklch": {
    "l": 0.46087,
    "c": 0.18139,
    "h": 299.8
  },
  "luminance": 0.08499
}

Semantic roles & 50–950 ramp

primary
#6A34AC
secondary
#A2C279
accent
#DD4B9B
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0F0813
muted
#7E7B82

Preview Lab

Preview with #6A34AC

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

Preview Lab → · Contrast checker → · Palette generator →

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