#6A52BB#6A52BB

#6A52BB is a mid, vivid violet. Relative luminance 0.127; OKLCH L 51.7% C 0.159 H 290.3°. Best body text is #FFFFFF at 5.94:1 contrast (WCAG AA passes).

Color values

HEX#6A52BB
RGBrgb(106, 82, 187)
HSLhsl(254, 44%, 53%)
HSVhsv(254, 56%, 73%)
CMYKcmyk(43.3%, 56.1%, 0%, 26.7%)
CIE-LABlab(42.29, 35.52, -52.26)
CIE-LCHlch(42.29, 63.18, 304.20°)
OKLaboklab(51.72% 0.055 -0.1488)
OKLCHoklch(51.72% 0.159 290.3)
XYZxyz(17.9283, 12.6860, 48.5081)
Luminance0.1269 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A52BB #A3BB52
analogous
#526FBB #6A52BB #9E52BB
triadic
#6A52BB #BB6A52 #52BB6A
tetradic
#6A52BB #BB526F #A3BB52 #52BB9E
square
#6A52BB #BB526F #A3BB52 #52BB9E
split-complementary
#6A52BB #BB9E52 #6FBB52
monochromatic
#382969 #4F3B95 #6A52BB #907ECC #B6AADE

Accessibility & contrast

On white

5.94
#6A52BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.54
#6A52BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6A52BB
5.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A52BB#FFFFFF#000000##FFFFFF
##6A52BB1.005.943.545.94
#FFFFFF5.941.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1866BF
Deuteranopia (green-blind)
#1D61B9
Tritanopia (blue-blind)
#53697E
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #6a52bb;
/* rgb */ color: rgb(106, 82, 187);
/* oklch */ color: oklch(51.7% 0.159 290.3);
Tailwind
colors: {
  custom: {
    50: '#9a83d0',
    500: '#6a52bb',
    950: '#000000',
  },
}
SCSS
$custom: #6a52bb;
$custom-light: #9a83d0;
$custom-dark: #000000;
JSON
{
  "hex": "#6a52bb",
  "rgb": {
    "r": 106,
    "g": 82,
    "b": 187
  },
  "hsl": {
    "h": 253.714,
    "s": 43.568,
    "l": 52.745
  },
  "oklch": {
    "l": 0.51721,
    "c": 0.15859,
    "h": 290.3
  },
  "luminance": 0.12687
}

Semantic roles & 50–950 ramp

primary
#6A52BB
secondary
#C1CB9E
accent
#D354B6
background
#F9F8FC
surface
#F2EFF9
border
#CCCAD2
text
#0E0B14
muted
#7E7C82

Preview Lab

Preview with #6A52BB

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

Preview Lab → · Contrast checker → · Palette generator →

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