#6C34CA#6C34CA

#6C34CA is a mid, highly saturated violet. Relative luminance 0.099; OKLCH L 48.8% C 0.215 H 293.9°. Best body text is #FFFFFF at 7.04:1 contrast (WCAG AA passes).

Color values

HEX#6C34CA
RGBrgb(108, 52, 202)
HSLhsl(262, 59%, 50%)
HSVhsv(262, 74%, 79%)
CMYKcmyk(46.5%, 74.3%, 0%, 20.8%)
CIE-LABlab(37.68, 56.14, -68.48)
CIE-LCHlch(37.68, 88.55, 309.35°)
OKLaboklab(48.79% 0.087 -0.1963)
OKLCHoklch(48.79% 0.215 293.9)
XYZxyz(18.0701, 9.9078, 56.8260)
Luminance0.0991 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C34CA #92CA34
analogous
#3447CA #6C34CA #B734CA
triadic
#6C34CA #CA6C34 #34CA6C
tetradic
#6C34CA #CA3447 #92CA34 #34CAB7
square
#6C34CA #CA3447 #92CA34 #34CAB7
split-complementary
#6C34CA #CAB734 #47CA34
monochromatic
#381B69 #522799 #6C34CA #8F64D7 #B295E4

Accessibility & contrast

On white

7.04
#6C34CA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#6C34CA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6C34CA
7.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C34CA#FFFFFF#000000##FFFFFF
##6C34CA1.007.042.987.04
#FFFFFF7.041.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ACE
Deuteranopia (green-blind)
#0056C7
Tritanopia (blue-blind)
#505C7D
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #6c34ca;
/* rgb */ color: rgb(108, 52, 202);
/* oklch */ color: oklch(48.8% 0.215 293.9);
Tailwind
colors: {
  custom: {
    50: '#9f71db',
    500: '#6c34ca',
    950: '#000000',
  },
}
SCSS
$custom: #6c34ca;
$custom-light: #9f71db;
$custom-dark: #000000;
JSON
{
  "hex": "#6c34ca",
  "rgb": {
    "r": 108,
    "g": 52,
    "b": 202
  },
  "hsl": {
    "h": 262.4,
    "s": 59.055,
    "l": 49.804
  },
  "oklch": {
    "l": 0.48794,
    "c": 0.21474,
    "h": 293.9
  },
  "luminance": 0.09908
}

Semantic roles & 50–950 ramp

primary
#6C34CA
secondary
#B5CF8B
accent
#E246A8
background
#FAF7FD
surface
#F4EDFB
border
#CEC8D4
text
#100815
muted
#7F7B83

Preview Lab

Preview with #6C34CA

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

Preview Lab → · Contrast checker → · Palette generator →

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