#6338BD#6338BD

#6338BD is a mid, vivid violet. Relative luminance 0.092; OKLCH L 47.2% C 0.195 H 292.0°. Best body text is #FFFFFF at 7.42:1 contrast (WCAG AA passes).

Color values

HEX#6338BD
RGBrgb(99, 56, 189)
HSLhsl(259, 54%, 48%)
HSVhsv(259, 70%, 74%)
CMYKcmyk(47.6%, 70.4%, 0%, 25.9%)
CIE-LABlab(36.28, 49.24, -63.20)
CIE-LCHlch(36.28, 80.12, 307.92°)
OKLaboklab(47.24% 0.0732 -0.1812)
OKLCHoklch(47.24% 0.195 292)
XYZxyz(15.7425, 9.1546, 49.0718)
Luminance0.0916 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6338BD #92BD38
analogous
#3850BD #6338BD #A538BD
triadic
#6338BD #BD6338 #38BD63
tetradic
#6338BD #BD3850 #92BD38 #38BDA5
square
#6338BD #BD3850 #92BD38 #38BDA5
split-complementary
#6338BD #BDA538 #50BD38
monochromatic
#321C5F #4A2A8E #6338BD #8662D0 #AA91DE

Accessibility & contrast

On white

7.42
#6338BD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#6338BD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6338BD
7.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6338BD#FFFFFF#000000##FFFFFF
##6338BD1.007.422.837.42
#FFFFFF7.421.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057C1
Deuteranopia (green-blind)
#0053BA
Tritanopia (blue-blind)
#475A76
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #6338bd;
/* rgb */ color: rgb(99, 56, 189);
/* oklch */ color: oklch(47.2% 0.195 292.0);
Tailwind
colors: {
  custom: {
    50: '#9772d2',
    500: '#6338bd',
    950: '#000000',
  },
}
SCSS
$custom: #6338bd;
$custom-light: #9772d2;
$custom-dark: #000000;
JSON
{
  "hex": "#6338bd",
  "rgb": {
    "r": 99,
    "g": 56,
    "b": 189
  },
  "hsl": {
    "h": 259.398,
    "s": 54.286,
    "l": 48.039
  },
  "oklch": {
    "l": 0.4724,
    "c": 0.19541,
    "h": 292
  },
  "luminance": 0.09155
}

Semantic roles & 50–950 ramp

primary
#6338BD
secondary
#B4C987
accent
#DE4AAE
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #6338BD

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

Preview Lab → · Contrast checker → · Palette generator →

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