#6338E6#6338E6

#6338E6 is a mid, highly saturated violet. Relative luminance 0.112; OKLCH L 50.9% C 0.242 H 285.3°. Best body text is #FFFFFF at 6.48:1 contrast (WCAG AA passes).

Color values

HEX#6338E6
RGBrgb(99, 56, 230)
HSLhsl(255, 78%, 56%)
HSVhsv(255, 76%, 90%)
CMYKcmyk(57%, 75.7%, 0%, 9.8%)
CIE-LABlab(39.90, 60.53, -80.96)
CIE-LCHlch(39.90, 101.08, 306.79°)
OKLaboklab(50.9% 0.0637 -0.2332)
OKLCHoklch(50.9% 0.242 285.3)
XYZxyz(20.8384, 11.1929, 75.9100)
Luminance0.1119 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6338E6 #BBE638
analogous
#3864E6 #6338E6 #BA38E6
triadic
#6338E6 #E66338 #38E663
tetradic
#6338E6 #E63864 #BBE638 #38E6BA
square
#6338E6 #E63864 #BBE638 #38E6BA
split-complementary
#6338E6 #E6BA38 #64E638
monochromatic
#321291 #4419C8 #6338E6 #8E6EED #B8A5F4

Accessibility & contrast

On white

6.48
#6338E6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.24
#6338E6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6338E6
6.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6338E6#FFFFFF#000000##FFFFFF
##6338E61.006.483.246.48
#FFFFFF6.481.0021.001.00
#0000003.2421.001.0021.00
##FFFFFF6.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063EB
Deuteranopia (green-blind)
#0059E3
Tritanopia (blue-blind)
#1D6A8D
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #6338e6;
/* rgb */ color: rgb(99, 56, 230);
/* oklch */ color: oklch(50.9% 0.242 285.3);
Tailwind
colors: {
  custom: {
    50: '#9d74ef',
    500: '#6338e6',
    950: '#000000',
  },
}
SCSS
$custom: #6338e6;
$custom-light: #9d74ef;
$custom-dark: #000000;
JSON
{
  "hex": "#6338e6",
  "rgb": {
    "r": 99,
    "g": 56,
    "b": 230
  },
  "hsl": {
    "h": 254.828,
    "s": 77.679,
    "l": 56.078
  },
  "oklch": {
    "l": 0.50903,
    "c": 0.24174,
    "h": 285.3
  },
  "luminance": 0.11194
}

Semantic roles & 50–950 ramp

primary
#6338E6
secondary
#CFE199
accent
#F434C5
background
#FAF7FE
surface
#F4EDFD
border
#CEC8D5
text
#100817
muted
#7F7B85

Preview Lab

Preview with #6338E6

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

Preview Lab → · Contrast checker → · Palette generator →

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