#6628AF#6628AF

#6628AF is a dark, vivid violet. Relative luminance 0.074; OKLCH L 44.5% C 0.198 H 298.8°. Best body text is #FFFFFF at 8.44:1 contrast (WCAG AA passes).

Color values

HEX#6628AF
RGBrgb(102, 40, 175)
HSLhsl(268, 63%, 42%)
HSVhsv(268, 77%, 69%)
CMYKcmyk(41.7%, 77.1%, 0%, 31.4%)
CIE-LABlab(32.78, 53.63, -60.61)
CIE-LCHlch(32.78, 80.93, 311.50°)
OKLaboklab(44.48% 0.0951 -0.1733)
OKLCHoklch(44.48% 0.198 298.8)
XYZxyz(13.9742, 7.4373, 41.2484)
Luminance0.0744 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6628AF #71AF28
analogous
#282DAF #6628AF #AA28AF
triadic
#6628AF #AF6628 #28AF66
tetradic
#6628AF #AF282D #71AF28 #28AFAA
square
#6628AF #AF282D #71AF28 #28AFAA
split-complementary
#6628AF #AFAA28 #2DAF28
monochromatic
#2C114B #491D7D #6628AF #8441D4 #A473DF

Accessibility & contrast

On white

8.44
#6628AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#6628AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6628AF
8.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6628AF#FFFFFF#000000##FFFFFF
##6628AF1.008.442.498.44
#FFFFFF8.441.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.441.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #6628af;
/* rgb */ color: rgb(102, 40, 175);
/* oklch */ color: oklch(44.5% 0.198 298.8);
Tailwind
colors: {
  custom: {
    50: '#9969c8',
    500: '#6628af',
    950: '#000000',
  },
}
SCSS
$custom: #6628af;
$custom-light: #9969c8;
$custom-dark: #000000;
JSON
{
  "hex": "#6628af",
  "rgb": {
    "r": 102,
    "g": 40,
    "b": 175
  },
  "hsl": {
    "h": 267.556,
    "s": 62.791,
    "l": 42.157
  },
  "oklch": {
    "l": 0.44484,
    "c": 0.19774,
    "h": 298.8
  },
  "luminance": 0.07438
}

Semantic roles & 50–950 ramp

primary
#6628AF
secondary
#9DC66D
accent
#E6429B
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0F0713
muted
#7E7A82

Preview Lab

Preview with #6628AF

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

Preview Lab → · Contrast checker → · Palette generator →

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