#6B27BA#6B27BA

#6B27BA is a mid, highly saturated violet. Relative luminance 0.081; OKLCH L 45.9% C 0.211 H 298.4°. Best body text is #FFFFFF at 8.00:1 contrast (WCAG AA passes).

Color values

HEX#6B27BA
RGBrgb(107, 39, 186)
HSLhsl(268, 65%, 44%)
HSVhsv(268, 79%, 73%)
CMYKcmyk(42.5%, 79%, 0%, 27.1%)
CIE-LABlab(34.24, 57.52, -64.74)
CIE-LCHlch(34.24, 86.60, 311.62°)
OKLaboklab(45.93% 0.1003 -0.1853)
OKLCHoklch(45.93% 0.211 298.4)
XYZxyz(15.6496, 8.1218, 47.1880)
Luminance0.0812 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B27BA #76BA27
analogous
#272DBA #6B27BA #B527BA
triadic
#6B27BA #BA6B27 #27BA6B
tetradic
#6B27BA #BA272D #76BA27 #27BAB5
square
#6B27BA #BA272D #76BA27 #27BAB5
split-complementary
#6B27BA #BAB527 #2DBA27
monochromatic
#311255 #4E1C87 #6B27BA #8A46D8 #AA79E3

Accessibility & contrast

On white

8.00
#6B27BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #6B27BA
8.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B27BA#FFFFFF#000000##FFFFFF
##6B27BA1.008.002.628.00
#FFFFFF8.001.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051BE
Deuteranopia (green-blind)
#004FB7
Tritanopia (blue-blind)
#575071
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #6b27ba;
/* rgb */ color: rgb(107, 39, 186);
/* oklch */ color: oklch(45.9% 0.211 298.4);
Tailwind
colors: {
  custom: {
    50: '#9d6ad0',
    500: '#6b27ba',
    950: '#000000',
  },
}
SCSS
$custom: #6b27ba;
$custom-light: #9d6ad0;
$custom-dark: #000000;
JSON
{
  "hex": "#6b27ba",
  "rgb": {
    "r": 107,
    "g": 39,
    "b": 186
  },
  "hsl": {
    "h": 267.755,
    "s": 65.333,
    "l": 44.118
  },
  "oklch": {
    "l": 0.45932,
    "c": 0.21069,
    "h": 298.4
  },
  "luminance": 0.08122
}

Semantic roles & 50–950 ramp

primary
#6B27BA
secondary
#A2CB72
accent
#E8409A
background
#FAF6FC
surface
#F4EBF9
border
#CEC6D2
text
#0F0714
muted
#7F7A82

Preview Lab

Preview with #6B27BA

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

Preview Lab → · Contrast checker → · Palette generator →

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