#6627AF#6627AF

#6627AF is a dark, vivid violet. Relative luminance 0.074; OKLCH L 44.4% C 0.199 H 298.9°. Best body text is #FFFFFF at 8.49:1 contrast (WCAG AA passes).

Color values

HEX#6627AF
RGBrgb(102, 39, 175)
HSLhsl(268, 64%, 42%)
HSVhsv(268, 78%, 69%)
CMYKcmyk(41.7%, 77.7%, 0%, 31.4%)
CIE-LABlab(32.64, 54.05, -60.85)
CIE-LCHlch(32.64, 81.38, 311.61°)
OKLaboklab(44.38% 0.096 -0.174)
OKLCHoklch(44.38% 0.199 298.9)
XYZxyz(13.9409, 7.3708, 41.2373)
Luminance0.0737 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6627AF #70AF27
analogous
#272CAF #6627AF #AA27AF
triadic
#6627AF #AF6627 #27AF66
tetradic
#6627AF #AF272C #70AF27 #27AFAA
square
#6627AF #AF272C #70AF27 #27AFAA
split-complementary
#6627AF #AFAA27 #2CAF27
monochromatic
#2C114B #491C7D #6627AF #843FD4 #A471DF

Accessibility & contrast

On white

8.49
#6627AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#6627AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6627AF
8.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6627AF#FFFFFF#000000##FFFFFF
##6627AF1.008.492.478.49
#FFFFFF8.491.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DB3
Deuteranopia (green-blind)
#004BAC
Tritanopia (blue-blind)
#544C6A
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #6627af;
/* rgb */ color: rgb(102, 39, 175);
/* oklch */ color: oklch(44.4% 0.199 298.9);
Tailwind
colors: {
  custom: {
    50: '#9969c8',
    500: '#6627af',
    950: '#000000',
  },
}
SCSS
$custom: #6627af;
$custom-light: #9969c8;
$custom-dark: #000000;
JSON
{
  "hex": "#6627af",
  "rgb": {
    "r": 102,
    "g": 39,
    "b": 175
  },
  "hsl": {
    "h": 267.794,
    "s": 63.551,
    "l": 41.961
  },
  "oklch": {
    "l": 0.44382,
    "c": 0.19876,
    "h": 298.9
  },
  "luminance": 0.07371
}

Semantic roles & 50–950 ramp

primary
#6627AF
secondary
#9CC66B
accent
#E7419A
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0F0713
muted
#7E7A82

Preview Lab

Preview with #6627AF

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

Preview Lab → · Contrast checker → · Palette generator →

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