#6331B2#6331B2

#6331B2 is a mid, vivid violet. Relative luminance 0.081; OKLCH L 45.4% C 0.191 H 295.4°. Best body text is #FFFFFF at 8.04:1 contrast (WCAG AA passes).

Color values

HEX#6331B2
RGBrgb(99, 49, 178)
HSLhsl(263, 57%, 45%)
HSVhsv(263, 72%, 70%)
CMYKcmyk(44.4%, 72.5%, 0%, 30.2%)
CIE-LABlab(34.11, 49.78, -60.23)
CIE-LCHlch(34.11, 78.14, 309.57°)
OKLaboklab(45.42% 0.082 -0.1724)
OKLCHoklch(45.42% 0.191 295.4)
XYZxyz(14.2776, 8.0633, 42.9150)
Luminance0.0806 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6331B2 #80B231
analogous
#3140B2 #6331B2 #A431B2
triadic
#6331B2 #B26331 #31B263
tetradic
#6331B2 #B23140 #80B231 #31B2A4
square
#6331B2 #B23140 #80B231 #31B2A4
split-complementary
#6331B2 #B2A431 #40B231
monochromatic
#2E1752 #482482 #6331B2 #8251CF #A481DC

Accessibility & contrast

On white

8.04
#6331B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#6331B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6331B2
8.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6331B2#FFFFFF#000000##FFFFFF
##6331B21.008.042.618.04
#FFFFFF8.041.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B6
Deuteranopia (green-blind)
#004EAF
Tritanopia (blue-blind)
#4D526E
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #6331b2;
/* rgb */ color: rgb(99, 49, 178);
/* oklch */ color: oklch(45.4% 0.191 295.4);
Tailwind
colors: {
  custom: {
    50: '#966eca',
    500: '#6331b2',
    950: '#000000',
  },
}
SCSS
$custom: #6331b2;
$custom-light: #966eca;
$custom-dark: #000000;
JSON
{
  "hex": "#6331b2",
  "rgb": {
    "r": 99,
    "g": 49,
    "b": 178
  },
  "hsl": {
    "h": 263.256,
    "s": 56.828,
    "l": 44.51
  },
  "oklch": {
    "l": 0.45419,
    "c": 0.19093,
    "h": 295.4
  },
  "luminance": 0.08064
}

Semantic roles & 50–950 ramp

primary
#6331B2
secondary
#A8C579
accent
#E048A5
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #6331B2

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

Preview Lab → · Contrast checker → · Palette generator →

#6331B2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva