#6A2EB3#6A2EB3

#6A2EB3 is a mid, vivid violet. Relative luminance 0.083; OKLCH L 45.9% C 0.196 H 298.9°. Best body text is #FFFFFF at 7.91:1 contrast (WCAG AA passes).

Color values

HEX#6A2EB3
RGBrgb(106, 46, 179)
HSLhsl(267, 59%, 44%)
HSVhsv(267, 74%, 70%)
CMYKcmyk(40.8%, 74.3%, 0%, 29.8%)
CIE-LABlab(34.54, 52.67, -60.09)
CIE-LCHlch(34.54, 79.91, 311.24°)
OKLaboklab(45.94% 0.0948 -0.1717)
OKLCHoklch(45.94% 0.196 298.9)
XYZxyz(15.0555, 8.2726, 43.4427)
Luminance0.0827 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A2EB3 #77B32E
analogous
#2E34B3 #6A2EB3 #AD2EB3
triadic
#6A2EB3 #B36A2E #2EB36A
tetradic
#6A2EB3 #B32E34 #77B32E #2EB3AD
square
#6A2EB3 #B32E34 #77B32E #2EB3AD
split-complementary
#6A2EB3 #B3AD2E #34B32E
monochromatic
#301552 #4D2182 #6A2EB3 #894DD1 #A97EDE

Accessibility & contrast

On white

7.91
#6A2EB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#6A2EB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A2EB3
7.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A2EB3#FFFFFF#000000##FFFFFF
##6A2EB31.007.912.657.91
#FFFFFF7.911.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B7
Deuteranopia (green-blind)
#0050B0
Tritanopia (blue-blind)
#58506E
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #6a2eb3;
/* rgb */ color: rgb(106, 46, 179);
/* oklch */ color: oklch(45.9% 0.196 298.9);
Tailwind
colors: {
  custom: {
    50: '#9b6dcb',
    500: '#6a2eb3',
    950: '#000000',
  },
}
SCSS
$custom: #6a2eb3;
$custom-light: #9b6dcb;
$custom-dark: #000000;
JSON
{
  "hex": "#6a2eb3",
  "rgb": {
    "r": 106,
    "g": 46,
    "b": 179
  },
  "hsl": {
    "h": 267.068,
    "s": 59.111,
    "l": 44.118
  },
  "oklch": {
    "l": 0.45938,
    "c": 0.19615,
    "h": 298.9
  },
  "luminance": 0.08273
}

Semantic roles & 50–950 ramp

primary
#6A2EB3
secondary
#A2C676
accent
#E2469C
background
#FAF6FC
surface
#F3ECF9
border
#CDC7D2
text
#0F0713
muted
#7F7A82

Preview Lab

Preview with #6A2EB3

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

Preview Lab → · Contrast checker → · Palette generator →

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