#6B27B2#6B27B2

#6B27B2 is a mid, highly saturated violet. Relative luminance 0.078; OKLCH L 45.2% C 0.203 H 300.4°. Best body text is #FFFFFF at 8.21:1 contrast (WCAG AA passes).

Color values

HEX#6B27B2
RGBrgb(107, 39, 178)
HSLhsl(269, 64%, 43%)
HSVhsv(269, 78%, 70%)
CMYKcmyk(39.9%, 78.1%, 0%, 30.2%)
CIE-LABlab(33.54, 55.58, -61.12)
CIE-LCHlch(33.54, 82.62, 312.28°)
OKLaboklab(45.24% 0.1025 -0.1747)
OKLCHoklch(45.24% 0.203 300.4)
XYZxyz(14.8228, 7.7911, 42.8337)
Luminance0.0779 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B27B2 #6EB227
analogous
#2728B2 #6B27B2 #B127B2
triadic
#6B27B2 #B26B27 #27B26B
tetradic
#6B27B2 #B22728 #6EB227 #27B2B1
square
#6B27B2 #B22728 #6EB227 #27B2B1
split-complementary
#6B27B2 #B2B127 #28B227
monochromatic
#2F114E #4D1C80 #6B27B2 #8941D5 #A973E0

Accessibility & contrast

On white

8.21
#6B27B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#6B27B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6B27B2
8.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B27B2#FFFFFF#000000##FFFFFF
##6B27B21.008.212.568.21
#FFFFFF8.211.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB6
Deuteranopia (green-blind)
#004EAF
Tritanopia (blue-blind)
#5B4C6C
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #6b27b2;
/* rgb */ color: rgb(107, 39, 178);
/* oklch */ color: oklch(45.2% 0.203 300.4);
Tailwind
colors: {
  custom: {
    50: '#9c69ca',
    500: '#6b27b2',
    950: '#000000',
  },
}
SCSS
$custom: #6b27b2;
$custom-light: #9c69ca;
$custom-dark: #000000;
JSON
{
  "hex": "#6b27b2",
  "rgb": {
    "r": 107,
    "g": 39,
    "b": 178
  },
  "hsl": {
    "h": 269.353,
    "s": 64.055,
    "l": 42.549
  },
  "oklch": {
    "l": 0.45238,
    "c": 0.20256,
    "h": 300.4
  },
  "luminance": 0.07791
}

Semantic roles & 50–950 ramp

primary
#6B27B2
secondary
#9BC86D
accent
#E74196
background
#FAF6FC
surface
#F4EBF9
border
#CEC6D2
text
#0F0713
muted
#7F7A82

Preview Lab

Preview with #6B27B2

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

Preview Lab → · Contrast checker → · Palette generator →

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