#6B2FA5#6B2FA5

#6B2FA5 is a mid, vivid violet. Relative luminance 0.079; OKLCH L 45.0% C 0.180 H 303.0°. Best body text is #FFFFFF at 8.16:1 contrast (WCAG AA passes).

Color values

HEX#6B2FA5
RGBrgb(107, 47, 165)
HSLhsl(271, 56%, 42%)
HSVhsv(271, 72%, 65%)
CMYKcmyk(35.2%, 71.5%, 0%, 35.3%)
CIE-LABlab(33.72, 48.92, -53.05)
CIE-LCHlch(33.72, 72.16, 312.68°)
OKLaboklab(45.04% 0.0981 -0.151)
OKLCHoklch(45.04% 0.18 303)
XYZxyz(13.8699, 7.8754, 36.3794)
Luminance0.0788 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B2FA5 #69A52F
analogous
#302FA5 #6B2FA5 #A52FA4
triadic
#6B2FA5 #A56B2F #2FA56B
tetradic
#6B2FA5 #A5302F #69A52F #2FA4A5
square
#6B2FA5 #A5302F #69A52F #2FA4A5
split-complementary
#6B2FA5 #A4A52F #2FA530
monochromatic
#2D1446 #4C2175 #6B2FA5 #8A47CB #A876D8

Accessibility & contrast

On white

8.16
#6B2FA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #6B2FA5
8.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B2FA5#FFFFFF#000000##FFFFFF
##6B2FA51.008.162.588.16
#FFFFFF8.161.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.161.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #6b2fa5;
/* rgb */ color: rgb(107, 47, 165);
/* oklch */ color: oklch(45.0% 0.180 303.0);
Tailwind
colors: {
  custom: {
    50: '#9a6dc0',
    500: '#6b2fa5',
    950: '#000000',
  },
}
SCSS
$custom: #6b2fa5;
$custom-light: #9a6dc0;
$custom-dark: #000000;
JSON
{
  "hex": "#6b2fa5",
  "rgb": {
    "r": 107,
    "g": 47,
    "b": 165
  },
  "hsl": {
    "h": 270.508,
    "s": 55.66,
    "l": 41.569
  },
  "oklch": {
    "l": 0.45036,
    "c": 0.18007,
    "h": 303
  },
  "luminance": 0.07875
}

Semantic roles & 50–950 ramp

primary
#6B2FA5
secondary
#97C070
accent
#DF4993
background
#F9F6FB
surface
#F2ECF7
border
#CCC7D0
text
#0F0712
muted
#7E7A81

Preview Lab

Preview with #6B2FA5

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

Preview Lab → · Contrast checker → · Palette generator →

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