#6A2EA1#6A2EA1

#6A2EA1 is a dark, vivid violet. Relative luminance 0.076; OKLCH L 44.5% C 0.177 H 303.8°. Best body text is #FFFFFF at 8.34:1 contrast (WCAG AA passes).

Color values

HEX#6A2EA1
RGBrgb(106, 46, 161)
HSLhsl(271, 56%, 41%)
HSVhsv(271, 71%, 63%)
CMYKcmyk(34.2%, 71.4%, 0%, 36.9%)
CIE-LABlab(33.12, 48.21, -51.63)
CIE-LCHlch(33.12, 70.64, 313.04°)
OKLaboklab(44.48% 0.0983 -0.1469)
OKLCHoklch(44.48% 0.177 303.8)
XYZxyz(13.3524, 7.5914, 34.4732)
Luminance0.0759 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A2EA1 #65A12E
analogous
#302EA1 #6A2EA1 #A12E9F
triadic
#6A2EA1 #A16A2E #2EA16A
tetradic
#6A2EA1 #A1302E #65A12E #2E9FA1
square
#6A2EA1 #A1302E #65A12E #2E9FA1
split-complementary
#6A2EA1 #9FA12E #2EA130
monochromatic
#2B1342 #4B2071 #6A2EA1 #8943C9 #A773D7

Accessibility & contrast

On white

8.34
#6A2EA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#6A2EA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A2EA1
8.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A2EA1#FFFFFF#000000##FFFFFF
##6A2EA11.008.342.528.34
#FFFFFF8.341.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA4
Deuteranopia (green-blind)
#004E9F
Tritanopia (blue-blind)
#5F4964
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #6a2ea1;
/* rgb */ color: rgb(106, 46, 161);
/* oklch */ color: oklch(44.5% 0.177 303.8);
Tailwind
colors: {
  custom: {
    50: '#996cbe',
    500: '#6a2ea1',
    950: '#000000',
  },
}
SCSS
$custom: #6a2ea1;
$custom-light: #996cbe;
$custom-dark: #000000;
JSON
{
  "hex": "#6a2ea1",
  "rgb": {
    "r": 106,
    "g": 46,
    "b": 161
  },
  "hsl": {
    "h": 271.304,
    "s": 55.556,
    "l": 40.588
  },
  "oklch": {
    "l": 0.44481,
    "c": 0.17675,
    "h": 303.8
  },
  "luminance": 0.07591
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #6A2EA1

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

Preview Lab → · Contrast checker → · Palette generator →

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