#6A34AF#6A34AF

#6A34AF is a mid, vivid violet. Relative luminance 0.086; OKLCH L 46.3% C 0.185 H 299.1°. Best body text is #FFFFFF at 7.71:1 contrast (WCAG AA passes).

Color values

HEX#6A34AF
RGBrgb(106, 52, 175)
HSLhsl(266, 54%, 45%)
HSVhsv(266, 70%, 69%)
CMYKcmyk(39.4%, 70.3%, 0%, 31.4%)
CIE-LABlab(35.23, 48.82, -56.59)
CIE-LCHlch(35.23, 74.74, 310.78°)
OKLaboklab(46.33% 0.0898 -0.1615)
OKLCHoklch(46.33% 0.185 299.1)
XYZxyz(14.9078, 8.6151, 41.4266)
Luminance0.0862 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A34AF #79AF34
analogous
#343CAF #6A34AF #A734AF
triadic
#6A34AF #AF6A34 #34AF6A
tetradic
#6A34AF #AF343C #79AF34 #34AFA7
square
#6A34AF #AF343C #79AF34 #34AFA7
split-complementary
#6A34AF #AFA734 #3CAF34
monochromatic
#311851 #4D2680 #6A34AF #8954CC #A983DA

Accessibility & contrast

On white

7.71
#6A34AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#6A34AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A34AF
7.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A34AF#FFFFFF#000000##FFFFFF
##6A34AF1.007.712.727.71
#FFFFFF7.711.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B3
Deuteranopia (green-blind)
#0052AC
Tritanopia (blue-blind)
#5A526E
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #6a34af;
/* rgb */ color: rgb(106, 52, 175);
/* oklch */ color: oklch(46.3% 0.185 299.1);
Tailwind
colors: {
  custom: {
    50: '#9a70c8',
    500: '#6a34af',
    950: '#000000',
  },
}
SCSS
$custom: #6a34af;
$custom-light: #9a70c8;
$custom-dark: #000000;
JSON
{
  "hex": "#6a34af",
  "rgb": {
    "r": 106,
    "g": 52,
    "b": 175
  },
  "hsl": {
    "h": 266.341,
    "s": 54.185,
    "l": 44.51
  },
  "oklch": {
    "l": 0.46326,
    "c": 0.18476,
    "h": 299.1
  },
  "luminance": 0.08615
}

Semantic roles & 50–950 ramp

primary
#6A34AF
secondary
#A4C47B
accent
#DE4A9D
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0F0813
muted
#7E7B82

Preview Lab

Preview with #6A34AF

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

Preview Lab → · Contrast checker → · Palette generator →

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