#6A27BA#6A27BA

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

Color values

HEX#6A27BA
RGBrgb(106, 39, 186)
HSLhsl(267, 65%, 44%)
HSVhsv(267, 79%, 73%)
CMYKcmyk(43%, 79%, 0%, 27.1%)
CIE-LABlab(34.11, 57.37, -64.95)
CIE-LCHlch(34.11, 86.66, 311.45°)
OKLaboklab(45.82% 0.0988 -0.186)
OKLCHoklch(45.82% 0.211 298)
XYZxyz(15.5300, 8.0601, 47.1824)
Luminance0.0806 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A27BA #77BA27
analogous
#272EBA #6A27BA #B427BA
triadic
#6A27BA #BA6A27 #27BA6A
tetradic
#6A27BA #BA272E #77BA27 #27BAB4
square
#6A27BA #BA272E #77BA27 #27BAB4
split-complementary
#6A27BA #BAB427 #2EBA27
monochromatic
#301255 #4D1C87 #6A27BA #8946D8 #A979E3

Accessibility & contrast

On white

8.04
#6A27BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#6A27BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A27BA
8.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A27BA#FFFFFF#000000##FFFFFF
##6A27BA1.008.042.618.04
#FFFFFF8.041.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.041.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #6a27ba;
/* rgb */ color: rgb(106, 39, 186);
/* oklch */ color: oklch(45.8% 0.211 298.0);
Tailwind
colors: {
  custom: {
    50: '#9c6ad0',
    500: '#6a27ba',
    950: '#000000',
  },
}
SCSS
$custom: #6a27ba;
$custom-light: #9c6ad0;
$custom-dark: #000000;
JSON
{
  "hex": "#6a27ba",
  "rgb": {
    "r": 106,
    "g": 39,
    "b": 186
  },
  "hsl": {
    "h": 267.347,
    "s": 65.333,
    "l": 44.118
  },
  "oklch": {
    "l": 0.45816,
    "c": 0.21057,
    "h": 298
  },
  "luminance": 0.0806
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #6A27BA

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

Preview Lab → · Contrast checker → · Palette generator →

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