#6A2EA2#6A2EA2

#6A2EA2 is a dark, vivid violet. Relative luminance 0.076; OKLCH L 44.6% C 0.178 H 303.5°. Best body text is #FFFFFF at 8.32:1 contrast (WCAG AA passes).

Color values

HEX#6A2EA2
RGBrgb(106, 46, 162)
HSLhsl(271, 56%, 41%)
HSVhsv(271, 72%, 64%)
CMYKcmyk(34.6%, 71.6%, 0%, 36.5%)
CIE-LABlab(33.19, 48.46, -52.11)
CIE-LCHlch(33.19, 71.16, 312.92°)
OKLaboklab(44.56% 0.0982 -0.1483)
OKLCHoklch(44.56% 0.178 303.5)
XYZxyz(13.4409, 7.6268, 34.9394)
Luminance0.0763 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A2EA2 #66A22E
analogous
#302EA2 #6A2EA2 #A22EA0
triadic
#6A2EA2 #A26A2E #2EA26A
tetradic
#6A2EA2 #A2302E #66A22E #2EA0A2
square
#6A2EA2 #A2302E #66A22E #2EA0A2
split-complementary
#6A2EA2 #A0A22E #2EA230
monochromatic
#2C1343 #4B2072 #6A2EA2 #8943CA #A773D7

Accessibility & contrast

On white

8.32
#6A2EA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#6A2EA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A2EA2
8.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A2EA2#FFFFFF#000000##FFFFFF
##6A2EA21.008.322.538.32
#FFFFFF8.321.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA5
Deuteranopia (green-blind)
#004EA0
Tritanopia (blue-blind)
#5F4965
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #6a2ea2;
/* rgb */ color: rgb(106, 46, 162);
/* oklch */ color: oklch(44.6% 0.178 303.5);
Tailwind
colors: {
  custom: {
    50: '#996cbe',
    500: '#6a2ea2',
    950: '#000000',
  },
}
SCSS
$custom: #6a2ea2;
$custom-light: #996cbe;
$custom-dark: #000000;
JSON
{
  "hex": "#6a2ea2",
  "rgb": {
    "r": 106,
    "g": 46,
    "b": 162
  },
  "hsl": {
    "h": 271.034,
    "s": 55.769,
    "l": 40.784
  },
  "oklch": {
    "l": 0.44559,
    "c": 0.17783,
    "h": 303.5
  },
  "luminance": 0.07627
}

Semantic roles & 50–950 ramp

primary
#6A2EA2
secondary
#94BF6D
accent
#DF4991
background
#F9F6FB
surface
#F2ECF7
border
#CCC7D0
text
#0E0712
muted
#7E7A81

Preview Lab

Preview with #6A2EA2

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

Preview Lab → · Contrast checker → · Palette generator →

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