#6B2FA4#6B2FA4

#6B2FA4 is a dark, vivid violet. Relative luminance 0.078; OKLCH L 45.0% C 0.179 H 303.3°. Best body text is #FFFFFF at 8.18:1 contrast (WCAG AA passes).

Color values

HEX#6B2FA4
RGBrgb(107, 47, 164)
HSLhsl(271, 55%, 41%)
HSVhsv(271, 71%, 64%)
CMYKcmyk(34.8%, 71.3%, 0%, 35.7%)
CIE-LABlab(33.65, 48.67, -52.57)
CIE-LCHlch(33.65, 71.65, 312.79°)
OKLaboklab(44.96% 0.0982 -0.1496)
OKLCHoklch(44.96% 0.179 303.3)
XYZxyz(13.7792, 7.8392, 35.9019)
Luminance0.0784 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B2FA4 #68A42F
analogous
#312FA4 #6B2FA4 #A42FA3
triadic
#6B2FA4 #A46B2F #2FA46B
tetradic
#6B2FA4 #A4312F #68A42F #2FA3A4
square
#6B2FA4 #A4312F #68A42F #2FA3A4
split-complementary
#6B2FA4 #A3A42F #2FA431
monochromatic
#2D1445 #4C2174 #6B2FA4 #8A46CA #A876D8

Accessibility & contrast

On white

8.18
#6B2FA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#6B2FA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6B2FA4
8.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B2FA4#FFFFFF#000000##FFFFFF
##6B2FA41.008.182.578.18
#FFFFFF8.181.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA7
Deuteranopia (green-blind)
#004FA2
Tritanopia (blue-blind)
#604B66
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #6b2fa4;
/* rgb */ color: rgb(107, 47, 164);
/* oklch */ color: oklch(45.0% 0.179 303.3);
Tailwind
colors: {
  custom: {
    50: '#9a6dc0',
    500: '#6b2fa4',
    950: '#000000',
  },
}
SCSS
$custom: #6b2fa4;
$custom-light: #9a6dc0;
$custom-dark: #000000;
JSON
{
  "hex": "#6b2fa4",
  "rgb": {
    "r": 107,
    "g": 47,
    "b": 164
  },
  "hsl": {
    "h": 270.769,
    "s": 55.45,
    "l": 41.373
  },
  "oklch": {
    "l": 0.44958,
    "c": 0.17898,
    "h": 303.3
  },
  "luminance": 0.07839
}

Semantic roles & 50–950 ramp

primary
#6B2FA4
secondary
#96C06F
accent
#DF4992
background
#F9F6FB
surface
#F2ECF7
border
#CCC7D0
text
#0F0712
muted
#7E7A81

Preview Lab

Preview with #6B2FA4

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

Preview Lab → · Contrast checker → · Palette generator →

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