#6B2FA6#6B2FA6

#6B2FA6 is a mid, vivid violet. Relative luminance 0.079; OKLCH L 45.1% C 0.181 H 302.7°. Best body text is #FFFFFF at 8.13:1 contrast (WCAG AA passes).

Color values

HEX#6B2FA6
RGBrgb(107, 47, 166)
HSLhsl(270, 56%, 42%)
HSVhsv(270, 72%, 65%)
CMYKcmyk(35.5%, 71.7%, 0%, 34.9%)
CIE-LABlab(33.80, 49.16, -53.53)
CIE-LCHlch(33.80, 72.68, 312.57°)
OKLaboklab(45.12% 0.0979 -0.1524)
OKLCHoklch(45.12% 0.181 302.7)
XYZxyz(13.9612, 7.9120, 36.8606)
Luminance0.0791 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B2FA6 #6AA62F
analogous
#2F2FA6 #6B2FA6 #A62FA6
triadic
#6B2FA6 #A66B2F #2FA66B
tetradic
#6B2FA6 #A62F2F #6AA62F #2FA6A6
square
#6B2FA6 #A62F2F #6AA62F #2FA6A6
split-complementary
#6B2FA6 #A6A62F #2FA62F
monochromatic
#2E1447 #4C2176 #6B2FA6 #8A47CB #A877D8

Accessibility & contrast

On white

8.13
#6B2FA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#6B2FA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6B2FA6
8.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B2FA6#FFFFFF#000000##FFFFFF
##6B2FA61.008.132.588.13
#FFFFFF8.131.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA9
Deuteranopia (green-blind)
#004FA4
Tritanopia (blue-blind)
#5F4B67
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #6b2fa6;
/* rgb */ color: rgb(107, 47, 166);
/* oklch */ color: oklch(45.1% 0.181 302.7);
Tailwind
colors: {
  custom: {
    50: '#9a6dc1',
    500: '#6b2fa6',
    950: '#000000',
  },
}
SCSS
$custom: #6b2fa6;
$custom-light: #9a6dc1;
$custom-dark: #000000;
JSON
{
  "hex": "#6b2fa6",
  "rgb": {
    "r": 107,
    "g": 47,
    "b": 166
  },
  "hsl": {
    "h": 270.252,
    "s": 55.869,
    "l": 41.765
  },
  "oklch": {
    "l": 0.45115,
    "c": 0.18114,
    "h": 302.7
  },
  "luminance": 0.07912
}

Semantic roles & 50–950 ramp

primary
#6B2FA6
secondary
#98C170
accent
#DF4993
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0F0712
muted
#7E7A81

Preview Lab

Preview with #6B2FA6

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

Preview Lab → · Contrast checker → · Palette generator →

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