#6B2EA2#6B2EA2

#6B2EA2 is a dark, vivid violet. Relative luminance 0.077; OKLCH L 44.7% C 0.178 H 304.0°. Best body text is #FFFFFF at 8.28:1 contrast (WCAG AA passes).

Color values

HEX#6B2EA2
RGBrgb(107, 46, 162)
HSLhsl(272, 56%, 41%)
HSVhsv(272, 72%, 64%)
CMYKcmyk(34%, 71.6%, 0%, 36.5%)
CIE-LABlab(33.33, 48.66, -51.89)
CIE-LCHlch(33.33, 71.13, 313.16°)
OKLaboklab(44.68% 0.0996 -0.1476)
OKLCHoklch(44.68% 0.178 304)
XYZxyz(13.5605, 7.6885, 34.9450)
Luminance0.0769 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B2EA2 #65A22E
analogous
#312EA2 #6B2EA2 #A22E9F
triadic
#6B2EA2 #A26B2E #2EA26B
tetradic
#6B2EA2 #A2312E #65A22E #2E9FA2
square
#6B2EA2 #A2312E #65A22E #2E9FA2
split-complementary
#6B2EA2 #9FA22E #2EA231
monochromatic
#2C1343 #4C2072 #6B2EA2 #8A43CA #A873D7

Accessibility & contrast

On white

8.28
#6B2EA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#6B2EA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6B2EA2
8.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B2EA2#FFFFFF#000000##FFFFFF
##6B2EA21.008.282.548.28
#FFFFFF8.281.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.281.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #6b2ea2;
/* rgb */ color: rgb(107, 46, 162);
/* oklch */ color: oklch(44.7% 0.178 304.0);
Tailwind
colors: {
  custom: {
    50: '#9a6cbe',
    500: '#6b2ea2',
    950: '#000000',
  },
}
SCSS
$custom: #6b2ea2;
$custom-light: #9a6cbe;
$custom-dark: #000000;
JSON
{
  "hex": "#6b2ea2",
  "rgb": {
    "r": 107,
    "g": 46,
    "b": 162
  },
  "hsl": {
    "h": 271.552,
    "s": 55.769,
    "l": 40.784
  },
  "oklch": {
    "l": 0.44682,
    "c": 0.17806,
    "h": 304
  },
  "luminance": 0.07688
}

Semantic roles & 50–950 ramp

primary
#6B2EA2
secondary
#94BF6D
accent
#DF4990
background
#F9F6FB
surface
#F2ECF7
border
#CCC7D0
text
#0F0712
muted
#7E7A81

Preview Lab

Preview with #6B2EA2

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

Preview Lab → · Contrast checker → · Palette generator →

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