#6A27B2#6A27B2

#6A27B2 is a mid, highly saturated violet. Relative luminance 0.077; OKLCH L 45.1% C 0.202 H 300.0°. Best body text is #FFFFFF at 8.25:1 contrast (WCAG AA passes).

Color values

HEX#6A27B2
RGBrgb(106, 39, 178)
HSLhsl(269, 64%, 43%)
HSVhsv(269, 78%, 70%)
CMYKcmyk(40.4%, 78.1%, 0%, 30.2%)
CIE-LABlab(33.41, 55.42, -61.34)
CIE-LCHlch(33.41, 82.67, 312.10°)
OKLaboklab(45.12% 0.1011 -0.1754)
OKLCHoklch(45.12% 0.202 300)
XYZxyz(14.7032, 7.7294, 42.8281)
Luminance0.0773 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A27B2 #6FB227
analogous
#2729B2 #6A27B2 #AF27B2
triadic
#6A27B2 #B26A27 #27B26A
tetradic
#6A27B2 #B22729 #6FB227 #27B2AF
square
#6A27B2 #B22729 #6FB227 #27B2AF
split-complementary
#6A27B2 #B2AF27 #29B227
monochromatic
#2E114E #4C1C80 #6A27B2 #8841D5 #A873E0

Accessibility & contrast

On white

8.25
#6A27B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #6A27B2
8.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A27B2#FFFFFF#000000##FFFFFF
##6A27B21.008.252.558.25
#FFFFFF8.251.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB6
Deuteranopia (green-blind)
#004DAF
Tritanopia (blue-blind)
#594D6C
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #6a27b2;
/* rgb */ color: rgb(106, 39, 178);
/* oklch */ color: oklch(45.1% 0.202 300.0);
Tailwind
colors: {
  custom: {
    50: '#9b69ca',
    500: '#6a27b2',
    950: '#000000',
  },
}
SCSS
$custom: #6a27b2;
$custom-light: #9b69ca;
$custom-dark: #000000;
JSON
{
  "hex": "#6a27b2",
  "rgb": {
    "r": 106,
    "g": 39,
    "b": 178
  },
  "hsl": {
    "h": 268.921,
    "s": 64.055,
    "l": 42.549
  },
  "oklch": {
    "l": 0.45118,
    "c": 0.20241,
    "h": 300
  },
  "luminance": 0.0773
}

Semantic roles & 50–950 ramp

primary
#6A27B2
secondary
#9CC86D
accent
#E74197
background
#FAF6FC
surface
#F3EBF9
border
#CDC6D2
text
#0F0713
muted
#7F7A82

Preview Lab

Preview with #6A27B2

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

Preview Lab → · Contrast checker → · Palette generator →

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