#6338BA#6338BA

#6338BA is a mid, vivid violet. Relative luminance 0.090; OKLCH L 47.0% C 0.192 H 292.6°. Best body text is #FFFFFF at 7.49:1 contrast (WCAG AA passes).

Color values

HEX#6338BA
RGBrgb(99, 56, 186)
HSLhsl(260, 54%, 47%)
HSVhsv(260, 70%, 73%)
CMYKcmyk(46.8%, 69.9%, 0%, 27.1%)
CIE-LABlab(36.03, 48.42, -61.84)
CIE-LCHlch(36.03, 78.54, 308.06°)
OKLaboklab(46.99% 0.0738 -0.1772)
OKLCHoklch(46.99% 0.192 292.6)
XYZxyz(15.4202, 9.0257, 47.3745)
Luminance0.0903 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6338BA #8FBA38
analogous
#384EBA #6338BA #A438BA
triadic
#6338BA #BA6338 #38BA63
tetradic
#6338BA #BA384E #8FBA38 #38BAA4
square
#6338BA #BA384E #8FBA38 #38BAA4
split-complementary
#6338BA #BAA438 #4EBA38
monochromatic
#311C5C #4A2A8B #6338BA #8560CF #A98FDD

Accessibility & contrast

On white

7.49
#6338BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#6338BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6338BA
7.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6338BA#FFFFFF#000000##FFFFFF
##6338BA1.007.492.817.49
#FFFFFF7.491.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056BE
Deuteranopia (green-blind)
#0052B7
Tritanopia (blue-blind)
#495975
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #6338ba;
/* rgb */ color: rgb(99, 56, 186);
/* oklch */ color: oklch(47.0% 0.192 292.6);
Tailwind
colors: {
  custom: {
    50: '#9772d0',
    500: '#6338ba',
    950: '#000000',
  },
}
SCSS
$custom: #6338ba;
$custom-light: #9772d0;
$custom-dark: #000000;
JSON
{
  "hex": "#6338ba",
  "rgb": {
    "r": 99,
    "g": 56,
    "b": 186
  },
  "hsl": {
    "h": 259.846,
    "s": 53.719,
    "l": 47.451
  },
  "oklch": {
    "l": 0.46988,
    "c": 0.19193,
    "h": 292.6
  },
  "luminance": 0.09026
}

Semantic roles & 50–950 ramp

primary
#6338BA
secondary
#B2C886
accent
#DD4BAD
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0E0814
muted
#7E7B82

Preview Lab

Preview with #6338BA

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

Preview Lab → · Contrast checker → · Palette generator →

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