#6B2FAB#6B2FAB

#6B2FAB is a mid, vivid violet. Relative luminance 0.081; OKLCH L 45.5% C 0.187 H 301.3°. Best body text is #FFFFFF at 8.02:1 contrast (WCAG AA passes).

Color values

HEX#6B2FAB
RGBrgb(107, 47, 171)
HSLhsl(269, 57%, 43%)
HSVhsv(269, 73%, 67%)
CMYKcmyk(37.4%, 72.5%, 0%, 32.9%)
CIE-LABlab(34.19, 50.40, -55.90)
CIE-LCHlch(34.19, 75.26, 312.04°)
OKLaboklab(45.51% 0.097 -0.1594)
OKLCHoklch(45.51% 0.187 301.3)
XYZxyz(14.4288, 8.0990, 39.3233)
Luminance0.0810 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B2FAB #6FAB2F
analogous
#2F31AB #6B2FAB #A92FAB
triadic
#6B2FAB #AB6B2F #2FAB6B
tetradic
#6B2FAB #AB2F31 #6FAB2F #2FABA9
square
#6B2FAB #AB2F31 #6FAB2F #2FABA9
split-complementary
#6B2FAB #ABA92F #31AB2F
monochromatic
#2F154B #4D227B #6B2FAB #894ACD #A97ADA

Accessibility & contrast

On white

8.02
#6B2FAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#6B2FAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6B2FAB
8.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B2FAB#FFFFFF#000000##FFFFFF
##6B2FAB1.008.022.628.02
#FFFFFF8.021.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050AF
Deuteranopia (green-blind)
#0050A8
Tritanopia (blue-blind)
#5D4D6A
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #6b2fab;
/* rgb */ color: rgb(107, 47, 171);
/* oklch */ color: oklch(45.5% 0.187 301.3);
Tailwind
colors: {
  custom: {
    50: '#9b6dc5',
    500: '#6b2fab',
    950: '#000000',
  },
}
SCSS
$custom: #6b2fab;
$custom-light: #9b6dc5;
$custom-dark: #000000;
JSON
{
  "hex": "#6b2fab",
  "rgb": {
    "r": 107,
    "g": 47,
    "b": 171
  },
  "hsl": {
    "h": 269.032,
    "s": 56.881,
    "l": 42.745
  },
  "oklch": {
    "l": 0.45513,
    "c": 0.18655,
    "h": 301.3
  },
  "luminance": 0.08099
}

Semantic roles & 50–950 ramp

primary
#6B2FAB
secondary
#9CC373
accent
#E04896
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0F0713
muted
#7E7A82

Preview Lab

Preview with #6B2FAB

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

Preview Lab → · Contrast checker → · Palette generator →

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