#6338D2#6338D2

#6338D2 is a mid, highly saturated violet. Relative luminance 0.101; OKLCH L 49.1% C 0.219 H 288.3°. Best body text is #FFFFFF at 6.94:1 contrast (WCAG AA passes).

Color values

HEX#6338D2
RGBrgb(99, 56, 210)
HSLhsl(257, 63%, 52%)
HSVhsv(257, 73%, 82%)
CMYKcmyk(52.9%, 73.3%, 0%, 17.6%)
CIE-LABlab(38.08, 55.03, -72.49)
CIE-LCHlch(38.08, 91.01, 307.20°)
OKLaboklab(49.07% 0.0688 -0.2084)
OKLCHoklch(49.07% 0.219 288.3)
XYZxyz(18.1892, 10.1332, 61.9578)
Luminance0.1013 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6338D2 #A7D238
analogous
#385AD2 #6338D2 #B038D2
triadic
#6338D2 #D26338 #38D263
tetradic
#6338D2 #D2385A #A7D238 #38D2B0
square
#6338D2 #D2385A #A7D238 #38D2B0
split-complementary
#6338D2 #D2B038 #5AD238
monochromatic
#341A75 #4A26A7 #6338D2 #8A6ADD #B19CE9

Accessibility & contrast

On white

6.94
#6338D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#6338D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6338D2
6.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6338D2#FFFFFF#000000##FFFFFF
##6338D21.006.943.036.94
#FFFFFF6.941.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DD6
Deuteranopia (green-blind)
#0056CF
Tritanopia (blue-blind)
#376282
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #6338d2;
/* rgb */ color: rgb(99, 56, 210);
/* oklch */ color: oklch(49.1% 0.219 288.3);
Tailwind
colors: {
  custom: {
    50: '#9a73e1',
    500: '#6338d2',
    950: '#000000',
  },
}
SCSS
$custom: #6338d2;
$custom-light: #9a73e1;
$custom-dark: #000000;
JSON
{
  "hex": "#6338d2",
  "rgb": {
    "r": 99,
    "g": 56,
    "b": 210
  },
  "hsl": {
    "h": 256.753,
    "s": 63.115,
    "l": 52.157
  },
  "oklch": {
    "l": 0.49069,
    "c": 0.21947,
    "h": 288.3
  },
  "luminance": 0.10134
}

Semantic roles & 50–950 ramp

primary
#6338D2
secondary
#C2D591
accent
#E642B8
background
#FAF7FD
surface
#F4EDFB
border
#CEC8D4
text
#0F0815
muted
#7F7B83

Preview Lab

Preview with #6338D2

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

Preview Lab → · Contrast checker → · Palette generator →

#6338D2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva