#6A2EB2#6A2EB2

#6A2EB2 is a mid, vivid violet. Relative luminance 0.082; OKLCH L 45.9% C 0.195 H 299.1°. Best body text is #FFFFFF at 7.93:1 contrast (WCAG AA passes).

Color values

HEX#6A2EB2
RGBrgb(106, 46, 178)
HSLhsl(267, 59%, 44%)
HSVhsv(267, 74%, 70%)
CMYKcmyk(40.4%, 74.2%, 0%, 30.2%)
CIE-LABlab(34.46, 52.42, -59.63)
CIE-LCHlch(34.46, 79.40, 311.32°)
OKLaboklab(45.85% 0.095 -0.1704)
OKLCHoklch(45.85% 0.195 299.1)
XYZxyz(14.9547, 8.2323, 42.9120)
Luminance0.0823 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A2EB2 #76B22E
analogous
#2E34B2 #6A2EB2 #AC2EB2
triadic
#6A2EB2 #B26A2E #2EB26A
tetradic
#6A2EB2 #B22E34 #76B22E #2EB2AC
square
#6A2EB2 #B22E34 #76B22E #2EB2AC
split-complementary
#6A2EB2 #B2AC2E #34B22E
monochromatic
#301551 #4D2181 #6A2EB2 #894CD1 #A97DDD

Accessibility & contrast

On white

7.93
#6A2EB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #6A2EB2
7.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A2EB2#FFFFFF#000000##FFFFFF
##6A2EB21.007.932.657.93
#FFFFFF7.931.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B6
Deuteranopia (green-blind)
#0050AF
Tritanopia (blue-blind)
#59506E
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #6a2eb2;
/* rgb */ color: rgb(106, 46, 178);
/* oklch */ color: oklch(45.9% 0.195 299.1);
Tailwind
colors: {
  custom: {
    50: '#9b6dca',
    500: '#6a2eb2',
    950: '#000000',
  },
}
SCSS
$custom: #6a2eb2;
$custom-light: #9b6dca;
$custom-dark: #000000;
JSON
{
  "hex": "#6a2eb2",
  "rgb": {
    "r": 106,
    "g": 46,
    "b": 178
  },
  "hsl": {
    "h": 267.273,
    "s": 58.929,
    "l": 43.922
  },
  "oklch": {
    "l": 0.45854,
    "c": 0.19508,
    "h": 299.1
  },
  "luminance": 0.08233
}

Semantic roles & 50–950 ramp

primary
#6A2EB2
secondary
#A2C676
accent
#E2469B
background
#FAF6FC
surface
#F3ECF8
border
#CDC7D1
text
#0F0713
muted
#7F7A82

Preview Lab

Preview with #6A2EB2

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

Preview Lab → · Contrast checker → · Palette generator →

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