#6C2FB3#6C2FB3

#6C2FB3 is a mid, vivid violet. Relative luminance 0.085; OKLCH L 46.3% C 0.195 H 299.7°. Best body text is #FFFFFF at 7.79:1 contrast (WCAG AA passes).

Color values

HEX#6C2FB3
RGBrgb(108, 47, 179)
HSLhsl(268, 58%, 44%)
HSVhsv(268, 74%, 70%)
CMYKcmyk(39.7%, 73.7%, 0%, 29.8%)
CIE-LABlab(34.95, 52.57, -59.41)
CIE-LCHlch(34.95, 79.33, 311.50°)
OKLaboklab(46.28% 0.0968 -0.1697)
OKLCHoklch(46.28% 0.195 299.7)
XYZxyz(15.3355, 8.4757, 43.4671)
Luminance0.0848 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C2FB3 #76B32F
analogous
#2F34B3 #6C2FB3 #AE2FB3
triadic
#6C2FB3 #B36C2F #2FB36C
tetradic
#6C2FB3 #B32F34 #76B32F #2FB3AE
square
#6C2FB3 #B32F34 #76B32F #2FB3AE
split-complementary
#6C2FB3 #B3AE2F #34B32F
monochromatic
#321652 #4F2283 #6C2FB3 #8B4FD1 #AB7FDD

Accessibility & contrast

On white

7.79
#6C2FB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#6C2FB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6C2FB3
7.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C2FB3#FFFFFF#000000##FFFFFF
##6C2FB31.007.792.707.79
#FFFFFF7.791.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B7
Deuteranopia (green-blind)
#0051B0
Tritanopia (blue-blind)
#5B506E
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #6c2fb3;
/* rgb */ color: rgb(108, 47, 179);
/* oklch */ color: oklch(46.3% 0.195 299.7);
Tailwind
colors: {
  custom: {
    50: '#9c6dcb',
    500: '#6c2fb3',
    950: '#000000',
  },
}
SCSS
$custom: #6c2fb3;
$custom-light: #9c6dcb;
$custom-dark: #000000;
JSON
{
  "hex": "#6c2fb3",
  "rgb": {
    "r": 108,
    "g": 47,
    "b": 179
  },
  "hsl": {
    "h": 267.727,
    "s": 58.407,
    "l": 44.314
  },
  "oklch": {
    "l": 0.46282,
    "c": 0.19533,
    "h": 299.7
  },
  "luminance": 0.08476
}

Semantic roles & 50–950 ramp

primary
#6C2FB3
secondary
#A2C678
accent
#E2469A
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#0F0713
muted
#7F7A82

Preview Lab

Preview with #6C2FB3

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

Preview Lab → · Contrast checker → · Palette generator →

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