#6B27A2#6B27A2

#6B27A2 is a dark, vivid violet. Relative luminance 0.072; OKLCH L 43.9% C 0.186 H 304.9°. Best body text is #FFFFFF at 8.62:1 contrast (WCAG AA passes).

Color values

HEX#6B27A2
RGBrgb(107, 39, 162)
HSLhsl(273, 61%, 39%)
HSVhsv(273, 76%, 64%)
CMYKcmyk(34%, 75.9%, 0%, 36.5%)
CIE-LABlab(32.23, 51.77, -53.67)
CIE-LCHlch(32.23, 74.57, 313.97°)
OKLaboklab(43.9% 0.1065 -0.1528)
OKLCHoklch(43.9% 0.186 304.9)
XYZxyz(13.3090, 7.1855, 34.8612)
Luminance0.0718 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B27A2 #5EA227
analogous
#2E27A2 #6B27A2 #A2279C
triadic
#6B27A2 #A26B27 #27A26B
tetradic
#6B27A2 #A22E27 #5EA227 #279CA2
square
#6B27A2 #A22E27 #5EA227 #279CA2
split-complementary
#6B27A2 #9CA227 #27A22E
monochromatic
#2A0F3F #4A1B71 #6B27A2 #8B37CF #A869DB

Accessibility & contrast

On white

8.62
#6B27A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#6B27A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6B27A2
8.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B27A2#FFFFFF#000000##FFFFFF
##6B27A21.008.622.448.62
#FFFFFF8.621.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA5
Deuteranopia (green-blind)
#004CA0
Tritanopia (blue-blind)
#614663
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #6b27a2;
/* rgb */ color: rgb(107, 39, 162);
/* oklch */ color: oklch(43.9% 0.186 304.9);
Tailwind
colors: {
  custom: {
    50: '#9b68be',
    500: '#6b27a2',
    950: '#000000',
  },
}
SCSS
$custom: #6b27a2;
$custom-light: #9b68be;
$custom-dark: #000000;
JSON
{
  "hex": "#6b27a2",
  "rgb": {
    "r": 107,
    "g": 39,
    "b": 162
  },
  "hsl": {
    "h": 273.171,
    "s": 61.194,
    "l": 39.412
  },
  "oklch": {
    "l": 0.43904,
    "c": 0.18625,
    "h": 304.9
  },
  "luminance": 0.07185
}

Semantic roles & 50–950 ramp

primary
#6B27A2
secondary
#8DC164
accent
#E4438B
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0F0712
muted
#7E7A81

Preview Lab

Preview with #6B27A2

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

Preview Lab → · Contrast checker → · Palette generator →

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