#6338BB#6338BB

#6338BB is a mid, vivid violet. Relative luminance 0.091; OKLCH L 47.1% C 0.193 H 292.4°. Best body text is #FFFFFF at 7.46:1 contrast (WCAG AA passes).

Color values

HEX#6338BB
RGBrgb(99, 56, 187)
HSLhsl(260, 54%, 48%)
HSVhsv(260, 70%, 73%)
CMYKcmyk(47.1%, 70.1%, 0%, 26.7%)
CIE-LABlab(36.12, 48.69, -62.29)
CIE-LCHlch(36.12, 79.07, 308.01°)
OKLaboklab(47.07% 0.0736 -0.1785)
OKLCHoklch(47.07% 0.193 292.4)
XYZxyz(15.5269, 9.0683, 47.9363)
Luminance0.0907 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6338BB #90BB38
analogous
#384EBB #6338BB #A538BB
triadic
#6338BB #BB6338 #38BB63
tetradic
#6338BB #BB384E #90BB38 #38BBA5
square
#6338BB #BB384E #90BB38 #38BBA5
split-complementary
#6338BB #BBA538 #4EBB38
monochromatic
#311C5D #4A2A8C #6338BB #8561D0 #A990DE

Accessibility & contrast

On white

7.46
#6338BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #6338BB
7.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6338BB#FFFFFF#000000##FFFFFF
##6338BB1.007.462.817.46
#FFFFFF7.461.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057BF
Deuteranopia (green-blind)
#0052B8
Tritanopia (blue-blind)
#485975
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #6338bb;
/* rgb */ color: rgb(99, 56, 187);
/* oklch */ color: oklch(47.1% 0.193 292.4);
Tailwind
colors: {
  custom: {
    50: '#9772d0',
    500: '#6338bb',
    950: '#000000',
  },
}
SCSS
$custom: #6338bb;
$custom-light: #9772d0;
$custom-dark: #000000;
JSON
{
  "hex": "#6338bb",
  "rgb": {
    "r": 99,
    "g": 56,
    "b": 187
  },
  "hsl": {
    "h": 259.695,
    "s": 53.909,
    "l": 47.647
  },
  "oklch": {
    "l": 0.47072,
    "c": 0.19309,
    "h": 292.4
  },
  "luminance": 0.09069
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #6338BB

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

Preview Lab → · Contrast checker → · Palette generator →

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