#6A2CB7#6A2CB7

#6A2CB7 is a mid, highly saturated violet. Relative luminance 0.083; OKLCH L 46.1% C 0.203 H 298.2°. Best body text is #FFFFFF at 7.90:1 contrast (WCAG AA passes).

Color values

HEX#6A2CB7
RGBrgb(106, 44, 183)
HSLhsl(267, 61%, 45%)
HSVhsv(267, 76%, 72%)
CMYKcmyk(42.1%, 76%, 0%, 28.2%)
CIE-LABlab(34.57, 54.56, -62.43)
CIE-LCHlch(34.57, 82.90, 311.15°)
OKLaboklab(46.06% 0.0956 -0.1786)
OKLCHoklch(46.06% 0.203 298.2)
XYZxyz(15.3896, 8.2842, 45.5788)
Luminance0.0828 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A2CB7 #79B72C
analogous
#2C33B7 #6A2CB7 #B02CB7
triadic
#6A2CB7 #B76A2C #2CB76A
tetradic
#6A2CB7 #B72C33 #79B72C #2CB7B0
square
#6A2CB7 #B72C33 #79B72C #2CB7B0
split-complementary
#6A2CB7 #B7B02C #33B72C
monochromatic
#311454 #4D2086 #6A2CB7 #894CD4 #A97EE0

Accessibility & contrast

On white

7.90
#6A2CB7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#6A2CB7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A2CB7
7.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A2CB7#FFFFFF#000000##FFFFFF
##6A2CB71.007.902.667.90
#FFFFFF7.901.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051BB
Deuteranopia (green-blind)
#0050B4
Tritanopia (blue-blind)
#575170
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #6a2cb7;
/* rgb */ color: rgb(106, 44, 183);
/* oklch */ color: oklch(46.1% 0.203 298.2);
Tailwind
colors: {
  custom: {
    50: '#9c6cce',
    500: '#6a2cb7',
    950: '#000000',
  },
}
SCSS
$custom: #6a2cb7;
$custom-light: #9c6cce;
$custom-dark: #000000;
JSON
{
  "hex": "#6a2cb7",
  "rgb": {
    "r": 106,
    "g": 44,
    "b": 183
  },
  "hsl": {
    "h": 266.763,
    "s": 61.233,
    "l": 44.51
  },
  "oklch": {
    "l": 0.46058,
    "c": 0.20254,
    "h": 298.2
  },
  "luminance": 0.08284
}

Semantic roles & 50–950 ramp

primary
#6A2CB7
secondary
#A4C876
accent
#E4439D
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#0F0714
muted
#7F7A82

Preview Lab

Preview with #6A2CB7

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

Preview Lab → · Contrast checker → · Palette generator →

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