#6638AA#6638AA

#6638AA is a mid, vivid violet. Relative luminance 0.086; OKLCH L 46.0% C 0.173 H 297.7°. Best body text is #FFFFFF at 7.75:1 contrast (WCAG AA passes).

Color values

HEX#6638AA
RGBrgb(102, 56, 170)
HSLhsl(264, 50%, 44%)
HSVhsv(264, 67%, 67%)
CMYKcmyk(40%, 67.1%, 0%, 33.3%)
CIE-LABlab(35.11, 44.67, -53.82)
CIE-LCHlch(35.11, 69.94, 309.69°)
OKLaboklab(46.01% 0.0806 -0.1535)
OKLCHoklch(46.01% 0.173 297.7)
XYZxyz(14.1475, 8.5552, 38.9284)
Luminance0.0856 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6638AA #7CAA38
analogous
#3843AA #6638AA #9F38AA
triadic
#6638AA #AA6638 #38AA66
tetradic
#6638AA #AA3843 #7CAA38 #38AA9F
square
#6638AA #AA3843 #7CAA38 #38AA9F
split-complementary
#6638AA #AA9F38 #43AA38
monochromatic
#2F1A4E #4A297C #6638AA #8557C8 #A685D7

Accessibility & contrast

On white

7.75
#6638AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#6638AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6638AA
7.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6638AA#FFFFFF#000000##FFFFFF
##6638AA1.007.752.717.75
#FFFFFF7.751.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053AD
Deuteranopia (green-blind)
#0051A8
Tritanopia (blue-blind)
#55536C
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #6638aa;
/* rgb */ color: rgb(102, 56, 170);
/* oklch */ color: oklch(46.0% 0.173 297.7);
Tailwind
colors: {
  custom: {
    50: '#9772c4',
    500: '#6638aa',
    950: '#000000',
  },
}
SCSS
$custom: #6638aa;
$custom-light: #9772c4;
$custom-dark: #000000;
JSON
{
  "hex": "#6638aa",
  "rgb": {
    "r": 102,
    "g": 56,
    "b": 170
  },
  "hsl": {
    "h": 264.211,
    "s": 50.442,
    "l": 44.314
  },
  "oklch": {
    "l": 0.46013,
    "c": 0.17336,
    "h": 297.7
  },
  "luminance": 0.08555
}

Semantic roles & 50–950 ramp

primary
#6638AA
secondary
#A5C17D
accent
#DA4EA1
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0E0813
muted
#7E7B82

Preview Lab

Preview with #6638AA

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

Preview Lab → · Contrast checker → · Palette generator →

#6638AA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva