#6B2FA7#6B2FA7

#6B2FA7 is a mid, vivid violet. Relative luminance 0.079; OKLCH L 45.2% C 0.182 H 302.4°. Best body text is #FFFFFF at 8.11:1 contrast (WCAG AA passes).

Color values

HEX#6B2FA7
RGBrgb(107, 47, 167)
HSLhsl(270, 56%, 42%)
HSVhsv(270, 72%, 65%)
CMYKcmyk(35.9%, 71.9%, 0%, 34.5%)
CIE-LABlab(33.88, 49.41, -54.01)
CIE-LCHlch(33.88, 73.20, 312.46°)
OKLaboklab(45.19% 0.0977 -0.1538)
OKLCHoklch(45.19% 0.182 302.4)
XYZxyz(14.0533, 7.9488, 37.3456)
Luminance0.0795 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B2FA7 #6BA72F
analogous
#2F2FA7 #6B2FA7 #A72FA7
triadic
#6B2FA7 #A76B2F #2FA76B
tetradic
#6B2FA7 #A72F2F #6BA72F #2FA7A7
square
#6B2FA7 #A72F2F #6BA72F #2FA7A7
split-complementary
#6B2FA7 #A7A72F #2FA72F
monochromatic
#2E1447 #4C2277 #6B2FA7 #8A48CB #A878D9

Accessibility & contrast

On white

8.11
#6B2FA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#6B2FA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6B2FA7
8.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B2FA7#FFFFFF#000000##FFFFFF
##6B2FA71.008.112.598.11
#FFFFFF8.111.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FAA
Deuteranopia (green-blind)
#004FA5
Tritanopia (blue-blind)
#5F4C68
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #6b2fa7;
/* rgb */ color: rgb(107, 47, 167);
/* oklch */ color: oklch(45.2% 0.182 302.4);
Tailwind
colors: {
  custom: {
    50: '#9b6dc2',
    500: '#6b2fa7',
    950: '#000000',
  },
}
SCSS
$custom: #6b2fa7;
$custom-light: #9b6dc2;
$custom-dark: #000000;
JSON
{
  "hex": "#6b2fa7",
  "rgb": {
    "r": 107,
    "g": 47,
    "b": 167
  },
  "hsl": {
    "h": 270,
    "s": 56.075,
    "l": 41.961
  },
  "oklch": {
    "l": 0.45194,
    "c": 0.18223,
    "h": 302.4
  },
  "luminance": 0.07949
}

Semantic roles & 50–950 ramp

primary
#6B2FA7
secondary
#99C171
accent
#DF4894
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0F0712
muted
#7E7A81

Preview Lab

Preview with #6B2FA7

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

Preview Lab → · Contrast checker → · Palette generator →

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