#6627B2#6627B2

#6627B2 is a dark, highly saturated violet. Relative luminance 0.075; OKLCH L 44.6% C 0.202 H 298.1°. Best body text is #FFFFFF at 8.41:1 contrast (WCAG AA passes).

Color values

HEX#6627B2
RGBrgb(102, 39, 178)
HSLhsl(267, 64%, 43%)
HSVhsv(267, 78%, 70%)
CMYKcmyk(42.7%, 78.1%, 0%, 30.2%)
CIE-LABlab(32.90, 54.79, -62.21)
CIE-LCHlch(32.90, 82.90, 311.37°)
OKLaboklab(44.65% 0.0951 -0.1781)
OKLCHoklch(44.65% 0.202 298.1)
XYZxyz(14.2388, 7.4899, 42.8064)
Luminance0.0749 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6627B2 #73B227
analogous
#272EB2 #6627B2 #AB27B2
triadic
#6627B2 #B26627 #27B266
tetradic
#6627B2 #B2272E #73B227 #27B2AB
square
#6627B2 #B2272E #73B227 #27B2AB
split-complementary
#6627B2 #B2AB27 #2EB227
monochromatic
#2C114E #491C80 #6627B2 #8441D5 #A573E0

Accessibility & contrast

On white

8.41
#6627B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#6627B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6627B2
8.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6627B2#FFFFFF#000000##FFFFFF
##6627B21.008.412.508.41
#FFFFFF8.411.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB6
Deuteranopia (green-blind)
#004CAF
Tritanopia (blue-blind)
#534D6C
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #6627b2;
/* rgb */ color: rgb(102, 39, 178);
/* oklch */ color: oklch(44.6% 0.202 298.1);
Tailwind
colors: {
  custom: {
    50: '#9969ca',
    500: '#6627b2',
    950: '#000000',
  },
}
SCSS
$custom: #6627b2;
$custom-light: #9969ca;
$custom-dark: #000000;
JSON
{
  "hex": "#6627b2",
  "rgb": {
    "r": 102,
    "g": 39,
    "b": 178
  },
  "hsl": {
    "h": 267.194,
    "s": 64.055,
    "l": 42.549
  },
  "oklch": {
    "l": 0.44645,
    "c": 0.20187,
    "h": 298.1
  },
  "luminance": 0.0749
}

Semantic roles & 50–950 ramp

primary
#6627B2
secondary
#9FC86D
accent
#E7419C
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0F0713
muted
#7E7A82

Preview Lab

Preview with #6627B2

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

Preview Lab → · Contrast checker → · Palette generator →

#6627B2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva