#6C2EB4#6C2EB4

#6C2EB4 is a mid, vivid violet. Relative luminance 0.084; OKLCH L 46.3% C 0.198 H 299.6°. Best body text is #FFFFFF at 7.81:1 contrast (WCAG AA passes).

Color values

HEX#6C2EB4
RGBrgb(108, 46, 180)
HSLhsl(268, 59%, 44%)
HSVhsv(268, 74%, 71%)
CMYKcmyk(40%, 74.4%, 0%, 29.4%)
CIE-LABlab(34.88, 53.27, -60.13)
CIE-LCHlch(34.88, 80.33, 311.54°)
OKLaboklab(46.25% 0.0975 -0.1718)
OKLCHoklch(46.25% 0.198 299.6)
XYZxyz(15.3975, 8.4372, 43.9885)
Luminance0.0844 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C2EB4 #76B42E
analogous
#2E33B4 #6C2EB4 #AF2EB4
triadic
#6C2EB4 #B46C2E #2EB46C
tetradic
#6C2EB4 #B42E33 #76B42E #2EB4AF
square
#6C2EB4 #B42E33 #76B42E #2EB4AF
split-complementary
#6C2EB4 #B4AF2E #33B42E
monochromatic
#321553 #4F2283 #6C2EB4 #8B4ED2 #AB7EDE

Accessibility & contrast

On white

7.81
#6C2EB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#6C2EB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6C2EB4
7.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C2EB4#FFFFFF#000000##FFFFFF
##6C2EB41.007.812.697.81
#FFFFFF7.811.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B8
Deuteranopia (green-blind)
#0051B1
Tritanopia (blue-blind)
#5B506F
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #6c2eb4;
/* rgb */ color: rgb(108, 46, 180);
/* oklch */ color: oklch(46.3% 0.198 299.6);
Tailwind
colors: {
  custom: {
    50: '#9d6dcb',
    500: '#6c2eb4',
    950: '#000000',
  },
}
SCSS
$custom: #6c2eb4;
$custom-light: #9d6dcb;
$custom-dark: #000000;
JSON
{
  "hex": "#6c2eb4",
  "rgb": {
    "r": 108,
    "g": 46,
    "b": 180
  },
  "hsl": {
    "h": 267.761,
    "s": 59.292,
    "l": 44.314
  },
  "oklch": {
    "l": 0.46253,
    "c": 0.19751,
    "h": 299.6
  },
  "luminance": 0.08437
}

Semantic roles & 50–950 ramp

primary
#6C2EB4
secondary
#A2C777
accent
#E2459A
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#0F0713
muted
#7F7A82

Preview Lab

Preview with #6C2EB4

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

Preview Lab → · Contrast checker → · Palette generator →

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