#6F27B1#6F27B1

#6F27B1 is a mid, highly saturated violet. Relative luminance 0.080; OKLCH L 45.6% C 0.202 H 302.5°. Best body text is #FFFFFF at 8.07:1 contrast (WCAG AA passes).

Color values

HEX#6F27B1
RGBrgb(111, 39, 177)
HSLhsl(271, 64%, 42%)
HSVhsv(271, 78%, 69%)
CMYKcmyk(37.3%, 78%, 0%, 30.6%)
CIE-LABlab(33.99, 56.00, -59.77)
CIE-LCHlch(33.99, 81.91, 313.13°)
OKLaboklab(45.64% 0.1086 -0.1706)
OKLCHoklch(45.64% 0.202 302.5)
XYZxyz(15.2150, 8.0048, 42.3300)
Luminance0.0800 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6F27B1 #69B127
analogous
#2A27B1 #6F27B1 #B127AE
triadic
#6F27B1 #B16F27 #27B16F
tetradic
#6F27B1 #B12A27 #69B127 #27AEB1
square
#6F27B1 #B12A27 #69B127 #27AEB1
split-complementary
#6F27B1 #AEB127 #27B12A
monochromatic
#30114D #501C7F #6F27B1 #8E40D5 #AC72E0

Accessibility & contrast

On white

8.07
#6F27B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#6F27B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6F27B1
8.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6F27B1#FFFFFF#000000##FFFFFF
##6F27B11.008.072.608.07
#FFFFFF8.071.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB5
Deuteranopia (green-blind)
#004FAE
Tritanopia (blue-blind)
#614C6B
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #6f27b1;
/* rgb */ color: rgb(111, 39, 177);
/* oklch */ color: oklch(45.6% 0.202 302.5);
Tailwind
colors: {
  custom: {
    50: '#9f6ac9',
    500: '#6f27b1',
    950: '#000000',
  },
}
SCSS
$custom: #6f27b1;
$custom-light: #9f6ac9;
$custom-dark: #000000;
JSON
{
  "hex": "#6f27b1",
  "rgb": {
    "r": 111,
    "g": 39,
    "b": 177
  },
  "hsl": {
    "h": 271.304,
    "s": 63.889,
    "l": 42.353
  },
  "oklch": {
    "l": 0.4564,
    "c": 0.20224,
    "h": 302.5
  },
  "luminance": 0.08005
}

Semantic roles & 50–950 ramp

primary
#6F27B1
secondary
#98C76D
accent
#E74190
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#0F0713
muted
#7F7A82

Preview Lab

Preview with #6F27B1

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

Preview Lab → · Contrast checker → · Palette generator →

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