#6046CB#6046CB

#6046CB is a mid, vivid violet. Relative luminance 0.112; OKLCH L 50.1% C 0.196 H 285.9°. Best body text is #FFFFFF at 6.49:1 contrast (WCAG AA passes).

Color values

HEX#6046CB
RGBrgb(96, 70, 203)
HSLhsl(252, 56%, 54%)
HSVhsv(252, 66%, 80%)
CMYKcmyk(52.7%, 65.5%, 0%, 20.4%)
CIE-LABlab(39.88, 45.16, -65.51)
CIE-LCHlch(39.88, 79.57, 304.58°)
OKLaboklab(50.1% 0.0537 -0.1881)
OKLCHoklch(50.1% 0.196 285.9)
XYZxyz(17.7903, 11.1780, 57.7085)
Luminance0.1118 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6046CB #B1CB46
analogous
#466ECB #6046CB #A246CB
triadic
#6046CB #CB6046 #46CB60
tetradic
#6046CB #CB466E #B1CB46 #46CBA2
square
#6046CB #CB466E #B1CB46 #46CBA2
split-complementary
#6046CB #CBA246 #6ECB46
monochromatic
#322176 #462EA5 #6046CB #8976D8 #B2A6E6

Accessibility & contrast

On white

6.49
#6046CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.24
#6046CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6046CB
6.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6046CB#FFFFFF#000000##FFFFFF
##6046CB1.006.493.246.49
#FFFFFF6.491.0021.001.00
#0000003.2421.001.0021.00
##FFFFFF6.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061CF
Deuteranopia (green-blind)
#005AC8
Tritanopia (blue-blind)
#356782
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #6046cb;
/* rgb */ color: rgb(96, 70, 203);
/* oklch */ color: oklch(50.1% 0.196 285.9);
Tailwind
colors: {
  custom: {
    50: '#977bdc',
    500: '#6046cb',
    950: '#000000',
  },
}
SCSS
$custom: #6046cb;
$custom-light: #977bdc;
$custom-dark: #000000;
JSON
{
  "hex": "#6046cb",
  "rgb": {
    "r": 96,
    "g": 70,
    "b": 203
  },
  "hsl": {
    "h": 251.729,
    "s": 56.118,
    "l": 53.529
  },
  "oklch": {
    "l": 0.50103,
    "c": 0.19559,
    "h": 285.9
  },
  "luminance": 0.11179
}

Semantic roles & 50–950 ramp

primary
#6046CB
secondary
#C8D39A
accent
#DF48C2
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #6046CB

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

Preview Lab → · Contrast checker → · Palette generator →

#6046CB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva