#6338B9#6338B9

#6338B9 is a mid, vivid violet. Relative luminance 0.090; OKLCH L 46.9% C 0.191 H 292.8°. Best body text is #FFFFFF at 7.51:1 contrast (WCAG AA passes).

Color values

HEX#6338B9
RGBrgb(99, 56, 185)
HSLhsl(260, 54%, 47%)
HSVhsv(260, 70%, 73%)
CMYKcmyk(46.5%, 69.7%, 0%, 27.5%)
CIE-LABlab(35.95, 48.14, -61.38)
CIE-LCHlch(35.95, 78.01, 308.11°)
OKLaboklab(46.9% 0.074 -0.1758)
OKLCHoklch(46.9% 0.191 292.8)
XYZxyz(15.3143, 8.9833, 46.8166)
Luminance0.0898 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6338B9 #8EB938
analogous
#384EB9 #6338B9 #A438B9
triadic
#6338B9 #B96338 #38B963
tetradic
#6338B9 #B9384E #8EB938 #38B9A4
square
#6338B9 #B9384E #8EB938 #38B9A4
split-complementary
#6338B9 #B9A438 #4EB938
monochromatic
#311C5B #4A2A8A #6338B9 #855FCF #A98EDD

Accessibility & contrast

On white

7.51
#6338B9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#6338B9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6338B9
7.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6338B9#FFFFFF#000000##FFFFFF
##6338B91.007.512.807.51
#FFFFFF7.511.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056BD
Deuteranopia (green-blind)
#0052B6
Tritanopia (blue-blind)
#495874
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #6338b9;
/* rgb */ color: rgb(99, 56, 185);
/* oklch */ color: oklch(46.9% 0.191 292.8);
Tailwind
colors: {
  custom: {
    50: '#9772cf',
    500: '#6338b9',
    950: '#000000',
  },
}
SCSS
$custom: #6338b9;
$custom-light: #9772cf;
$custom-dark: #000000;
JSON
{
  "hex": "#6338b9",
  "rgb": {
    "r": 99,
    "g": 56,
    "b": 185
  },
  "hsl": {
    "h": 260,
    "s": 53.527,
    "l": 47.255
  },
  "oklch": {
    "l": 0.46904,
    "c": 0.19075,
    "h": 292.8
  },
  "luminance": 0.08984
}

Semantic roles & 50–950 ramp

primary
#6338B9
secondary
#B1C885
accent
#DD4BAC
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0E0814
muted
#7E7B82

Preview Lab

Preview with #6338B9

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

Preview Lab → · Contrast checker → · Palette generator →

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