#6638BC#6638BC

#6638BC is a mid, vivid violet. Relative luminance 0.093; OKLCH L 47.5% C 0.194 H 293.6°. Best body text is #FFFFFF at 7.35:1 contrast (WCAG AA passes).

Color values

HEX#6638BC
RGBrgb(102, 56, 188)
HSLhsl(261, 54%, 48%)
HSVhsv(261, 70%, 74%)
CMYKcmyk(45.7%, 70.2%, 0%, 26.3%)
CIE-LABlab(36.52, 49.50, -62.20)
CIE-LCHlch(36.52, 79.49, 308.51°)
OKLaboklab(47.46% 0.0777 -0.1781)
OKLCHoklch(47.46% 0.194 293.6)
XYZxyz(15.9683, 9.2835, 48.5178)
Luminance0.0928 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6638BC #8EBC38
analogous
#384CBC #6638BC #A838BC
triadic
#6638BC #BC6638 #38BC66
tetradic
#6638BC #BC384C #8EBC38 #38BCA8
square
#6638BC #BC384C #8EBC38 #38BCA8
split-complementary
#6638BC #BCA838 #4CBC38
monochromatic
#331C5E #4C2A8D #6638BC #8861D0 #AB90DE

Accessibility & contrast

On white

7.35
#6638BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#6638BC on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##6638BC#FFFFFF#000000##FFFFFF
##6638BC1.007.352.867.35
#FFFFFF7.351.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057C0
Deuteranopia (green-blind)
#0054B9
Tritanopia (blue-blind)
#4D5976
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #6638bc;
/* rgb */ color: rgb(102, 56, 188);
/* oklch */ color: oklch(47.5% 0.194 293.6);
Tailwind
colors: {
  custom: {
    50: '#9972d1',
    500: '#6638bc',
    950: '#000000',
  },
}
SCSS
$custom: #6638bc;
$custom-light: #9972d1;
$custom-dark: #000000;
JSON
{
  "hex": "#6638bc",
  "rgb": {
    "r": 102,
    "g": 56,
    "b": 188
  },
  "hsl": {
    "h": 260.909,
    "s": 54.098,
    "l": 47.843
  },
  "oklch": {
    "l": 0.47464,
    "c": 0.19435,
    "h": 293.6
  },
  "luminance": 0.09284
}

Semantic roles & 50–950 ramp

primary
#6638BC
secondary
#B2C987
accent
#DD4AAA
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0F0814
muted
#7E7B83

Preview Lab

Preview with #6638BC

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

Preview Lab → · Contrast checker → · Palette generator →

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