#6638EA#6638EA

#6638EA is a mid, highly saturated violet. Relative luminance 0.116; OKLCH L 51.5% C 0.246 H 285.8°. Best body text is #FFFFFF at 6.33:1 contrast (WCAG AA passes).

Color values

HEX#6638EA
RGBrgb(102, 56, 234)
HSLhsl(256, 81%, 57%)
HSVhsv(256, 76%, 92%)
CMYKcmyk(56.4%, 76.1%, 0%, 8.2%)
CIE-LABlab(40.56, 61.99, -82.13)
CIE-LCHlch(40.56, 102.90, 307.04°)
OKLaboklab(51.54% 0.067 -0.2365)
OKLCHoklch(51.54% 0.246 285.8)
XYZxyz(21.7405, 11.5924, 78.9179)
Luminance0.1159 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6638EA #BCEA38
analogous
#3863EA #6638EA #BF38EA
triadic
#6638EA #EA6638 #38EA66
tetradic
#6638EA #EA3863 #BCEA38 #38EABF
square
#6638EA #EA3863 #BCEA38 #38EABF
split-complementary
#6638EA #EABF38 #63EA38
monochromatic
#331098 #4616CF #6638EA #916FF0 #BBA7F6

Accessibility & contrast

On white

6.33
#6638EA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.32
#6638EA on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##6638EA#FFFFFF#000000##FFFFFF
##6638EA1.006.333.326.33
#FFFFFF6.331.0021.001.00
#0000003.3221.001.0021.00
##FFFFFF6.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064EF
Deuteranopia (green-blind)
#005AE7
Tritanopia (blue-blind)
#236B90
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #6638ea;
/* rgb */ color: rgb(102, 56, 234);
/* oklch */ color: oklch(51.5% 0.246 285.8);
Tailwind
colors: {
  custom: {
    50: '#9f74f2',
    500: '#6638ea',
    950: '#000000',
  },
}
SCSS
$custom: #6638ea;
$custom-light: #9f74f2;
$custom-dark: #000000;
JSON
{
  "hex": "#6638ea",
  "rgb": {
    "r": 102,
    "g": 56,
    "b": 234
  },
  "hsl": {
    "h": 255.506,
    "s": 80.909,
    "l": 56.863
  },
  "oklch": {
    "l": 0.51543,
    "c": 0.24584,
    "h": 285.8
  },
  "luminance": 0.11594
}

Semantic roles & 50–950 ramp

primary
#6638EA
secondary
#D0E39B
accent
#F730C4
background
#FAF7FF
surface
#F4EDFE
border
#CEC8D6
text
#100917
muted
#7F7B85

Preview Lab

Preview with #6638EA

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

Preview Lab → · Contrast checker → · Palette generator →

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