#6638C4#6638C4

#6638C4 is a mid, highly saturated violet. Relative luminance 0.096; OKLCH L 48.1% C 0.204 H 292.0°. Best body text is #FFFFFF at 7.17:1 contrast (WCAG AA passes).

Color values

HEX#6638C4
RGBrgb(102, 56, 196)
HSLhsl(260, 56%, 49%)
HSVhsv(260, 71%, 77%)
CMYKcmyk(48%, 71.4%, 0%, 23.1%)
CIE-LABlab(37.18, 51.66, -65.81)
CIE-LCHlch(37.18, 83.67, 308.13°)
OKLaboklab(48.14% 0.0762 -0.1887)
OKLCHoklch(48.14% 0.204 292)
XYZxyz(16.8547, 9.6380, 53.1861)
Luminance0.0964 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6638C4 #96C438
analogous
#3850C4 #6638C4 #AC38C4
triadic
#6638C4 #C46638 #38C466
tetradic
#6638C4 #C43850 #96C438 #38C4AC
square
#6638C4 #C43850 #96C438 #38C4AC
split-complementary
#6638C4 #C4AC38 #50C438
monochromatic
#341D65 #4D2A94 #6638C4 #8A66D3 #AE96E1

Accessibility & contrast

On white

7.17
#6638C4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#6638C4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##6638C4#FFFFFF#000000##FFFFFF
##6638C41.007.172.937.17
#FFFFFF7.171.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AC8
Deuteranopia (green-blind)
#0055C1
Tritanopia (blue-blind)
#485C7A
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #6638c4;
/* rgb */ color: rgb(102, 56, 196);
/* oklch */ color: oklch(48.1% 0.204 292.0);
Tailwind
colors: {
  custom: {
    50: '#9a73d7',
    500: '#6638c4',
    950: '#000000',
  },
}
SCSS
$custom: #6638c4;
$custom-light: #9a73d7;
$custom-dark: #000000;
JSON
{
  "hex": "#6638c4",
  "rgb": {
    "r": 102,
    "g": 56,
    "b": 196
  },
  "hsl": {
    "h": 259.714,
    "s": 55.556,
    "l": 49.412
  },
  "oklch": {
    "l": 0.48138,
    "c": 0.20353,
    "h": 292
  },
  "luminance": 0.09639
}

Semantic roles & 50–950 ramp

primary
#6638C4
secondary
#B7CC8C
accent
#DF49AE
background
#FAF7FD
surface
#F3EDFA
border
#CDC8D3
text
#0F0814
muted
#7F7B83

Preview Lab

Preview with #6638C4

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

Preview Lab → · Contrast checker → · Palette generator →

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