#6638B2#6638B2

#6638B2 is a mid, vivid violet. Relative luminance 0.089; OKLCH L 46.6% C 0.183 H 295.8°. Best body text is #FFFFFF at 7.57:1 contrast (WCAG AA passes).

Color values

HEX#6638B2
RGBrgb(102, 56, 178)
HSLhsl(263, 52%, 46%)
HSVhsv(263, 69%, 70%)
CMYKcmyk(42.7%, 68.5%, 0%, 30.2%)
CIE-LABlab(35.73, 46.80, -57.59)
CIE-LCHlch(35.73, 74.21, 309.10°)
OKLaboklab(46.65% 0.0794 -0.1646)
OKLCHoklch(46.65% 0.183 295.8)
XYZxyz(14.9274, 8.8671, 43.0359)
Luminance0.0887 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6638B2 #84B238
analogous
#3847B2 #6638B2 #A338B2
triadic
#6638B2 #B26638 #38B266
tetradic
#6638B2 #B23847 #84B238 #38B2A3
square
#6638B2 #B23847 #84B238 #38B2A3
split-complementary
#6638B2 #B2A338 #47B238
monochromatic
#311B55 #4B2983 #6638B2 #865CCC #A88ADA

Accessibility & contrast

On white

7.57
#6638B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#6638B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##6638B2#FFFFFF#000000##FFFFFF
##6638B21.007.572.777.57
#FFFFFF7.571.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B6
Deuteranopia (green-blind)
#0052B0
Tritanopia (blue-blind)
#525670
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #6638b2;
/* rgb */ color: rgb(102, 56, 178);
/* oklch */ color: oklch(46.6% 0.183 295.8);
Tailwind
colors: {
  custom: {
    50: '#9872ca',
    500: '#6638b2',
    950: '#000000',
  },
}
SCSS
$custom: #6638b2;
$custom-light: #9872ca;
$custom-dark: #000000;
JSON
{
  "hex": "#6638b2",
  "rgb": {
    "r": 102,
    "g": 56,
    "b": 178
  },
  "hsl": {
    "h": 262.623,
    "s": 52.137,
    "l": 45.882
  },
  "oklch": {
    "l": 0.46646,
    "c": 0.18275,
    "h": 295.8
  },
  "luminance": 0.08867
}

Semantic roles & 50–950 ramp

primary
#6638B2
secondary
#ABC581
accent
#DC4CA6
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0E0813
muted
#7E7B82

Preview Lab

Preview with #6638B2

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

Preview Lab → · Contrast checker → · Palette generator →

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