#6C52B2#6C52B2

#6C52B2 is a mid, vivid violet. Relative luminance 0.124; OKLCH L 51.3% C 0.147 H 293.0°. Best body text is #FFFFFF at 6.02:1 contrast (WCAG AA passes).

Color values

HEX#6C52B2
RGBrgb(108, 82, 178)
HSLhsl(256, 38%, 51%)
HSVhsv(256, 54%, 70%)
CMYKcmyk(39.3%, 53.9%, 0%, 30.2%)
CIE-LABlab(41.90, 33.43, -47.59)
CIE-LCHlch(41.90, 58.16, 305.09°)
OKLaboklab(51.3% 0.0573 -0.135)
OKLCHoklch(51.3% 0.147 293)
XYZxyz(17.2354, 12.4367, 43.6033)
Luminance0.1244 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C52B2 #98B252
analogous
#5268B2 #6C52B2 #9C52B2
triadic
#6C52B2 #B26C52 #52B26C
tetradic
#6C52B2 #B25268 #98B252 #52B29C
square
#6C52B2 #B25268 #98B252 #52B29C
split-complementary
#6C52B2 #B29C52 #68B252
monochromatic
#392A5F #523D8A #6C52B2 #907CC5 #B4A7D8

Accessibility & contrast

On white

6.02
#6C52B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.49
#6C52B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6C52B2
6.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C52B2#FFFFFF#000000##FFFFFF
##6C52B21.006.023.496.02
#FFFFFF6.021.0021.001.00
#0000003.4921.001.0021.00
##FFFFFF6.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2764B5
Deuteranopia (green-blind)
#2D61B0
Tritanopia (blue-blind)
#5A667A
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #6c52b2;
/* rgb */ color: rgb(108, 82, 178);
/* oklch */ color: oklch(51.3% 0.147 293.0);
Tailwind
colors: {
  custom: {
    50: '#9a83c9',
    500: '#6c52b2',
    950: '#000000',
  },
}
SCSS
$custom: #6c52b2;
$custom-light: #9a83c9;
$custom-dark: #000000;
JSON
{
  "hex": "#6c52b2",
  "rgb": {
    "r": 108,
    "g": 82,
    "b": 178
  },
  "hsl": {
    "h": 256.25,
    "s": 38.4,
    "l": 50.98
  },
  "oklch": {
    "l": 0.51297,
    "c": 0.14664,
    "h": 293
  },
  "luminance": 0.12437
}

Semantic roles & 50–950 ramp

primary
#6C52B2
secondary
#BAC59B
accent
#CE59AF
background
#F9F8FC
surface
#F2EFF8
border
#CCCAD1
text
#0E0B13
muted
#7E7C82

Preview Lab

Preview with #6C52B2

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

Preview Lab → · Contrast checker → · Palette generator →

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