#6338D4#6338D4

#6338D4 is a mid, highly saturated violet. Relative luminance 0.102; OKLCH L 49.2% C 0.222 H 287.9°. Best body text is #FFFFFF at 6.89:1 contrast (WCAG AA passes).

Color values

HEX#6338D4
RGBrgb(99, 56, 212)
HSLhsl(257, 64%, 53%)
HSVhsv(257, 74%, 83%)
CMYKcmyk(53.3%, 73.6%, 0%, 16.9%)
CIE-LABlab(38.26, 55.58, -73.35)
CIE-LCHlch(38.26, 92.03, 307.15°)
OKLaboklab(49.25% 0.0683 -0.2109)
OKLCHoklch(49.25% 0.222 287.9)
XYZxyz(18.4399, 10.2335, 63.2782)
Luminance0.1023 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6338D4 #A9D438
analogous
#385BD4 #6338D4 #B138D4
triadic
#6338D4 #D46338 #38D463
tetradic
#6338D4 #D4385B #A9D438 #38D4B1
square
#6338D4 #D4385B #A9D438 #38D4B1
split-complementary
#6338D4 #D4B138 #5BD438
monochromatic
#341A78 #4925AA #6338D4 #8A6ADF #B29DEA

Accessibility & contrast

On white

6.89
#6338D4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#6338D4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6338D4
6.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6338D4#FFFFFF#000000##FFFFFF
##6338D41.006.893.056.89
#FFFFFF6.891.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ED8
Deuteranopia (green-blind)
#0056D1
Tritanopia (blue-blind)
#356383
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #6338d4;
/* rgb */ color: rgb(99, 56, 212);
/* oklch */ color: oklch(49.2% 0.222 287.9);
Tailwind
colors: {
  custom: {
    50: '#9b73e2',
    500: '#6338d4',
    950: '#000000',
  },
}
SCSS
$custom: #6338d4;
$custom-light: #9b73e2;
$custom-dark: #000000;
JSON
{
  "hex": "#6338d4",
  "rgb": {
    "r": 99,
    "g": 56,
    "b": 212
  },
  "hsl": {
    "h": 256.538,
    "s": 64.463,
    "l": 52.549
  },
  "oklch": {
    "l": 0.49249,
    "c": 0.22172,
    "h": 287.9
  },
  "luminance": 0.10234
}

Semantic roles & 50–950 ramp

primary
#6338D4
secondary
#C3D692
accent
#E740B9
background
#FAF7FE
surface
#F4EDFC
border
#CEC8D5
text
#0F0816
muted
#7F7B84

Preview Lab

Preview with #6338D4

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

Preview Lab → · Contrast checker → · Palette generator →

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