#6338EA#6338EA

#6338EA is a mid, highly saturated violet. Relative luminance 0.114; OKLCH L 51.3% C 0.246 H 284.7°. Best body text is #FFFFFF at 6.39:1 contrast (WCAG AA passes).

Color values

HEX#6338EA
RGBrgb(99, 56, 234)
HSLhsl(254, 81%, 57%)
HSVhsv(254, 76%, 92%)
CMYKcmyk(57.7%, 76.1%, 0%, 8.2%)
CIE-LABlab(40.28, 61.63, -82.61)
CIE-LCHlch(40.28, 103.06, 306.72°)
OKLaboklab(51.28% 0.0627 -0.238)
OKLCHoklch(51.28% 0.246 284.7)
XYZxyz(21.4065, 11.4202, 78.9023)
Luminance0.1142 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6338EA #BFEA38
analogous
#3866EA #6338EA #BC38EA
triadic
#6338EA #EA6338 #38EA63
tetradic
#6338EA #EA3866 #BFEA38 #38EABC
square
#6338EA #EA3866 #BFEA38 #38EABC
split-complementary
#6338EA #EABC38 #66EA38
monochromatic
#311098 #4316CF #6338EA #8E6FF0 #BAA7F6

Accessibility & contrast

On white

6.39
#6338EA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.28
#6338EA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6338EA
6.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6338EA#FFFFFF#000000##FFFFFF
##6338EA1.006.393.286.39
#FFFFFF6.391.0021.001.00
#0000003.2821.001.0021.00
##FFFFFF6.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064EF
Deuteranopia (green-blind)
#0059E7
Tritanopia (blue-blind)
#136B90
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #6338ea;
/* rgb */ color: rgb(99, 56, 234);
/* oklch */ color: oklch(51.3% 0.246 284.7);
Tailwind
colors: {
  custom: {
    50: '#9e74f2',
    500: '#6338ea',
    950: '#000000',
  },
}
SCSS
$custom: #6338ea;
$custom-light: #9e74f2;
$custom-dark: #000000;
JSON
{
  "hex": "#6338ea",
  "rgb": {
    "r": 99,
    "g": 56,
    "b": 234
  },
  "hsl": {
    "h": 254.494,
    "s": 80.909,
    "l": 56.863
  },
  "oklch": {
    "l": 0.51279,
    "c": 0.24613,
    "h": 284.7
  },
  "luminance": 0.11422
}

Semantic roles & 50–950 ramp

primary
#6338EA
secondary
#D2E39B
accent
#F730C7
background
#FAF7FF
surface
#F4EDFE
border
#CEC8D6
text
#100917
muted
#7F7B85

Preview Lab

Preview with #6338EA

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

Preview Lab → · Contrast checker → · Palette generator →

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