#6338C3#6338C3

#6338C3 is a mid, highly saturated violet. Relative luminance 0.094; OKLCH L 47.8% C 0.202 H 290.9°. Best body text is #FFFFFF at 7.28:1 contrast (WCAG AA passes).

Color values

HEX#6338C3
RGBrgb(99, 56, 195)
HSLhsl(259, 55%, 49%)
HSVhsv(259, 71%, 76%)
CMYKcmyk(49.2%, 71.3%, 0%, 23.5%)
CIE-LABlab(36.78, 50.89, -65.90)
CIE-LCHlch(36.78, 83.26, 307.68°)
OKLaboklab(47.75% 0.0721 -0.1891)
OKLCHoklch(47.75% 0.202 290.9)
XYZxyz(16.4073, 9.4205, 52.5730)
Luminance0.0942 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6338C3 #98C338
analogous
#3853C3 #6338C3 #A938C3
triadic
#6338C3 #C36338 #38C363
tetradic
#6338C3 #C33853 #98C338 #38C3A9
square
#6338C3 #C33853 #98C338 #38C3A9
split-complementary
#6338C3 #C3A938 #53C338
monochromatic
#331D64 #4B2A93 #6338C3 #8765D3 #AC95E1

Accessibility & contrast

On white

7.28
#6338C3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#6338C3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6338C3
7.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6338C3#FFFFFF#000000##FFFFFF
##6338C31.007.282.887.28
#FFFFFF7.281.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059C7
Deuteranopia (green-blind)
#0053C0
Tritanopia (blue-blind)
#435C7A
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #6338c3;
/* rgb */ color: rgb(99, 56, 195);
/* oklch */ color: oklch(47.8% 0.202 290.9);
Tailwind
colors: {
  custom: {
    50: '#9872d6',
    500: '#6338c3',
    950: '#000000',
  },
}
SCSS
$custom: #6338c3;
$custom-light: #9872d6;
$custom-dark: #000000;
JSON
{
  "hex": "#6338c3",
  "rgb": {
    "r": 99,
    "g": 56,
    "b": 195
  },
  "hsl": {
    "h": 258.561,
    "s": 55.378,
    "l": 49.216
  },
  "oklch": {
    "l": 0.47751,
    "c": 0.20236,
    "h": 290.9
  },
  "luminance": 0.09421
}

Semantic roles & 50–950 ramp

primary
#6338C3
secondary
#B8CC8B
accent
#DF49B0
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0F0814
muted
#7E7B83

Preview Lab

Preview with #6338C3

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

Preview Lab → · Contrast checker → · Palette generator →

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