#6338BF#6338BF

#6338BF is a mid, vivid violet. Relative luminance 0.092; OKLCH L 47.4% C 0.198 H 291.6°. Best body text is #FFFFFF at 7.37:1 contrast (WCAG AA passes).

Color values

HEX#6338BF
RGBrgb(99, 56, 191)
HSLhsl(259, 55%, 48%)
HSVhsv(259, 71%, 75%)
CMYKcmyk(48.2%, 70.7%, 0%, 25.1%)
CIE-LABlab(36.45, 49.79, -64.11)
CIE-LCHlch(36.45, 81.17, 307.84°)
OKLaboklab(47.41% 0.0729 -0.1838)
OKLCHoklch(47.41% 0.198 291.6)
XYZxyz(15.9611, 9.2420, 50.2230)
Luminance0.0924 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6338BF #94BF38
analogous
#3850BF #6338BF #A638BF
triadic
#6338BF #BF6338 #38BF63
tetradic
#6338BF #BF3850 #94BF38 #38BFA6
square
#6338BF #BF3850 #94BF38 #38BFA6
split-complementary
#6338BF #BFA638 #50BF38
monochromatic
#321C60 #4A2A90 #6338BF #8663D1 #AB92DF

Accessibility & contrast

On white

7.37
#6338BF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#6338BF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6338BF
7.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6338BF#FFFFFF#000000##FFFFFF
##6338BF1.007.372.857.37
#FFFFFF7.371.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058C3
Deuteranopia (green-blind)
#0053BC
Tritanopia (blue-blind)
#465B78
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #6338bf;
/* rgb */ color: rgb(99, 56, 191);
/* oklch */ color: oklch(47.4% 0.198 291.6);
Tailwind
colors: {
  custom: {
    50: '#9872d3',
    500: '#6338bf',
    950: '#000000',
  },
}
SCSS
$custom: #6338bf;
$custom-light: #9872d3;
$custom-dark: #000000;
JSON
{
  "hex": "#6338bf",
  "rgb": {
    "r": 99,
    "g": 56,
    "b": 191
  },
  "hsl": {
    "h": 259.111,
    "s": 54.656,
    "l": 48.431
  },
  "oklch": {
    "l": 0.47409,
    "c": 0.19773,
    "h": 291.6
  },
  "luminance": 0.09243
}

Semantic roles & 50–950 ramp

primary
#6338BF
secondary
#B5CA89
accent
#DE4AAF
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0F0814
muted
#7E7B83

Preview Lab

Preview with #6338BF

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

Preview Lab → · Contrast checker → · Palette generator →

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