#6D27A2#6D27A2

#6D27A2 is a dark, vivid violet. Relative luminance 0.073; OKLCH L 44.2% C 0.187 H 305.8°. Best body text is #FFFFFF at 8.53:1 contrast (WCAG AA passes).

Color values

HEX#6D27A2
RGBrgb(109, 39, 162)
HSLhsl(274, 61%, 39%)
HSVhsv(274, 76%, 64%)
CMYKcmyk(32.7%, 75.9%, 0%, 36.5%)
CIE-LABlab(32.50, 52.14, -53.21)
CIE-LCHlch(32.50, 74.50, 314.42°)
OKLaboklab(44.16% 0.1093 -0.1514)
OKLCHoklch(44.16% 0.187 305.8)
XYZxyz(13.5523, 7.3110, 34.8726)
Luminance0.0731 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6D27A2 #5CA227
analogous
#2F27A2 #6D27A2 #A2279A
triadic
#6D27A2 #A26D27 #27A26D
tetradic
#6D27A2 #A22F27 #5CA227 #279AA2
square
#6D27A2 #A22F27 #5CA227 #279AA2
split-complementary
#6D27A2 #9AA227 #27A22F
monochromatic
#2B0F3F #4C1B71 #6D27A2 #8E37CF #AA69DB

Accessibility & contrast

On white

8.53
#6D27A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#6D27A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6D27A2
8.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6D27A2#FFFFFF#000000##FFFFFF
##6D27A21.008.532.468.53
#FFFFFF8.531.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA5
Deuteranopia (green-blind)
#004DA0
Tritanopia (blue-blind)
#634563
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #6d27a2;
/* rgb */ color: rgb(109, 39, 162);
/* oklch */ color: oklch(44.2% 0.187 305.8);
Tailwind
colors: {
  custom: {
    50: '#9c69be',
    500: '#6d27a2',
    950: '#000000',
  },
}
SCSS
$custom: #6d27a2;
$custom-light: #9c69be;
$custom-dark: #000000;
JSON
{
  "hex": "#6d27a2",
  "rgb": {
    "r": 109,
    "g": 39,
    "b": 162
  },
  "hsl": {
    "h": 274.146,
    "s": 61.194,
    "l": 39.412
  },
  "oklch": {
    "l": 0.44159,
    "c": 0.18672,
    "h": 305.8
  },
  "luminance": 0.07311
}

Semantic roles & 50–950 ramp

primary
#6D27A2
secondary
#8CC164
accent
#E44389
background
#FAF6FB
surface
#F3EBF7
border
#CDC6D0
text
#0F0712
muted
#7F7A81

Preview Lab

Preview with #6D27A2

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

Preview Lab → · Contrast checker → · Palette generator →

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