#6F27AB#6F27AB

#6F27AB is a mid, vivid violet. Relative luminance 0.078; OKLCH L 45.1% C 0.196 H 304.1°. Best body text is #FFFFFF at 8.22:1 contrast (WCAG AA passes).

Color values

HEX#6F27AB
RGBrgb(111, 39, 171)
HSLhsl(273, 63%, 41%)
HSVhsv(273, 77%, 67%)
CMYKcmyk(35.1%, 77.2%, 0%, 32.9%)
CIE-LABlab(33.50, 54.59, -56.99)
CIE-LCHlch(33.50, 78.92, 313.77°)
OKLaboklab(45.14% 0.1101 -0.1624)
OKLCHoklch(45.14% 0.196 304.1)
XYZxyz(14.6301, 7.7709, 39.2494)
Luminance0.0777 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6F27AB #63AB27
analogous
#2D27AB #6F27AB #AB27A5
triadic
#6F27AB #AB6F27 #27AB6F
tetradic
#6F27AB #AB2D27 #63AB27 #27A5AB
square
#6F27AB #AB2D27 #63AB27 #27A5AB
split-complementary
#6F27AB #A5AB27 #27AB2D
monochromatic
#2E1047 #4F1C79 #6F27AB #8E3DD3 #AB6EDE

Accessibility & contrast

On white

8.22
#6F27AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#6F27AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6F27AB
8.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6F27AB#FFFFFF#000000##FFFFFF
##6F27AB1.008.222.558.22
#FFFFFF8.221.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DAF
Deuteranopia (green-blind)
#004FA8
Tritanopia (blue-blind)
#634968
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #6f27ab;
/* rgb */ color: rgb(111, 39, 171);
/* oklch */ color: oklch(45.1% 0.196 304.1);
Tailwind
colors: {
  custom: {
    50: '#9e69c5',
    500: '#6f27ab',
    950: '#000000',
  },
}
SCSS
$custom: #6f27ab;
$custom-light: #9e69c5;
$custom-dark: #000000;
JSON
{
  "hex": "#6f27ab",
  "rgb": {
    "r": 111,
    "g": 39,
    "b": 171
  },
  "hsl": {
    "h": 272.727,
    "s": 62.857,
    "l": 41.176
  },
  "oklch": {
    "l": 0.45143,
    "c": 0.19623,
    "h": 304.1
  },
  "luminance": 0.07771
}

Semantic roles & 50–950 ramp

primary
#6F27AB
secondary
#93C569
accent
#E6428C
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#0F0713
muted
#7F7A82

Preview Lab

Preview with #6F27AB

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

Preview Lab → · Contrast checker → · Palette generator →

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