#6A2EB7#6A2EB7

#6A2EB7 is a mid, highly saturated violet. Relative luminance 0.084; OKLCH L 46.3% C 0.200 H 297.9°. Best body text is #FFFFFF at 7.81:1 contrast (WCAG AA passes).

Color values

HEX#6A2EB7
RGBrgb(106, 46, 183)
HSLhsl(266, 60%, 45%)
HSVhsv(266, 75%, 72%)
CMYKcmyk(42.1%, 74.9%, 0%, 28.2%)
CIE-LABlab(34.88, 53.68, -61.92)
CIE-LCHlch(34.88, 81.95, 310.92°)
OKLaboklab(46.28% 0.0938 -0.1771)
OKLCHoklch(46.28% 0.2 297.9)
XYZxyz(15.4659, 8.4368, 45.6042)
Luminance0.0844 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A2EB7 #7BB72E
analogous
#2E37B7 #6A2EB7 #AE2EB7
triadic
#6A2EB7 #B76A2E #2EB76A
tetradic
#6A2EB7 #B72E37 #7BB72E #2EB7AE
square
#6A2EB7 #B72E37 #7BB72E #2EB7AE
split-complementary
#6A2EB7 #B7AE2E #37B72E
monochromatic
#311555 #4E2286 #6A2EB7 #894FD3 #AA80DF

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##6A2EB7#FFFFFF#000000##FFFFFF
##6A2EB71.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)
#0052BB
Deuteranopia (green-blind)
#0050B4
Tritanopia (blue-blind)
#575270
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #6a2eb7;
/* rgb */ color: rgb(106, 46, 183);
/* oklch */ color: oklch(46.3% 0.200 297.9);
Tailwind
colors: {
  custom: {
    50: '#9c6dce',
    500: '#6a2eb7',
    950: '#000000',
  },
}
SCSS
$custom: #6a2eb7;
$custom-light: #9c6dce;
$custom-dark: #000000;
JSON
{
  "hex": "#6a2eb7",
  "rgb": {
    "r": 106,
    "g": 46,
    "b": 183
  },
  "hsl": {
    "h": 266.277,
    "s": 59.825,
    "l": 44.902
  },
  "oklch": {
    "l": 0.46275,
    "c": 0.20043,
    "h": 297.9
  },
  "luminance": 0.08437
}

Semantic roles & 50–950 ramp

primary
#6A2EB7
secondary
#A5C879
accent
#E3459E
background
#FAF6FC
surface
#F3ECF9
border
#CDC7D2
text
#0F0714
muted
#7F7A82

Preview Lab

Preview with #6A2EB7

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

Preview Lab → · Contrast checker → · Palette generator →

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