#6B2FA8#6B2FA8

#6B2FA8 is a mid, vivid violet. Relative luminance 0.080; OKLCH L 45.3% C 0.183 H 302.1°. Best body text is #FFFFFF at 8.09:1 contrast (WCAG AA passes).

Color values

HEX#6B2FA8
RGBrgb(107, 47, 168)
HSLhsl(270, 56%, 42%)
HSVhsv(270, 72%, 66%)
CMYKcmyk(36.3%, 72%, 0%, 34.1%)
CIE-LABlab(33.95, 49.66, -54.48)
CIE-LCHlch(33.95, 73.71, 312.35°)
OKLaboklab(45.27% 0.0975 -0.1552)
OKLCHoklch(45.27% 0.183 302.1)
XYZxyz(14.1461, 7.9859, 37.8344)
Luminance0.0799 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B2FA8 #6CA82F
analogous
#2F30A8 #6B2FA8 #A82FA8
triadic
#6B2FA8 #A86B2F #2FA86B
tetradic
#6B2FA8 #A82F30 #6CA82F #2FA8A8
square
#6B2FA8 #A82F30 #6CA82F #2FA8A8
split-complementary
#6B2FA8 #A8A82F #30A82F
monochromatic
#2E1448 #4D2278 #6B2FA8 #8A48CC #A878D9

Accessibility & contrast

On white

8.09
#6B2FA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#6B2FA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6B2FA8
8.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B2FA8#FFFFFF#000000##FFFFFF
##6B2FA81.008.092.608.09
#FFFFFF8.091.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FAC
Deuteranopia (green-blind)
#004FA6
Tritanopia (blue-blind)
#5E4C68
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #6b2fa8;
/* rgb */ color: rgb(107, 47, 168);
/* oklch */ color: oklch(45.3% 0.183 302.1);
Tailwind
colors: {
  custom: {
    50: '#9b6dc3',
    500: '#6b2fa8',
    950: '#000000',
  },
}
SCSS
$custom: #6b2fa8;
$custom-light: #9b6dc3;
$custom-dark: #000000;
JSON
{
  "hex": "#6b2fa8",
  "rgb": {
    "r": 107,
    "g": 47,
    "b": 168
  },
  "hsl": {
    "h": 269.752,
    "s": 56.279,
    "l": 42.157
  },
  "oklch": {
    "l": 0.45273,
    "c": 0.18331,
    "h": 302.1
  },
  "luminance": 0.07986
}

Semantic roles & 50–950 ramp

primary
#6B2FA8
secondary
#9AC171
accent
#E04895
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0F0713
muted
#7E7A82

Preview Lab

Preview with #6B2FA8

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

Preview Lab → · Contrast checker → · Palette generator →

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