#6248CB#6248CB

#6248CB is a mid, vivid violet. Relative luminance 0.115; OKLCH L 50.6% C 0.193 H 286.4°. Best body text is #FFFFFF at 6.35:1 contrast (WCAG AA passes).

Color values

HEX#6248CB
RGBrgb(98, 72, 203)
HSLhsl(252, 56%, 54%)
HSVhsv(252, 65%, 80%)
CMYKcmyk(51.7%, 64.5%, 0%, 20.4%)
CIE-LABlab(40.48, 44.38, -64.52)
CIE-LCHlch(40.48, 78.31, 304.52°)
OKLaboklab(50.58% 0.0545 -0.1851)
OKLCHoklch(50.58% 0.193 286.4)
XYZxyz(18.1307, 11.5423, 57.7609)
Luminance0.1154 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6248CB #B1CB48
analogous
#4870CB #6248CB #A448CB
triadic
#6248CB #CB6248 #48CB62
tetradic
#6248CB #CB4870 #B1CB48 #48CBA4
square
#6248CB #CB4870 #B1CB48 #48CBA4
split-complementary
#6248CB #CBA448 #70CB48
monochromatic
#332277 #472FA6 #6248CB #8B78D9 #B4A7E6

Accessibility & contrast

On white

6.35
#6248CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.31
#6248CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6248CB
6.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6248CB#FFFFFF#000000##FFFFFF
##6248CB1.006.353.316.35
#FFFFFF6.351.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063CF
Deuteranopia (green-blind)
#005CC8
Tritanopia (blue-blind)
#396883
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #6248cb;
/* rgb */ color: rgb(98, 72, 203);
/* oklch */ color: oklch(50.6% 0.193 286.4);
Tailwind
colors: {
  custom: {
    50: '#987cdc',
    500: '#6248cb',
    950: '#000000',
  },
}
SCSS
$custom: #6248cb;
$custom-light: #987cdc;
$custom-dark: #000000;
JSON
{
  "hex": "#6248cb",
  "rgb": {
    "r": 98,
    "g": 72,
    "b": 203
  },
  "hsl": {
    "h": 251.908,
    "s": 55.745,
    "l": 53.922
  },
  "oklch": {
    "l": 0.50582,
    "c": 0.19297,
    "h": 286.4
  },
  "luminance": 0.11543
}

Semantic roles & 50–950 ramp

primary
#6248CB
secondary
#C8D39B
accent
#DF49C1
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0F0A15
muted
#7E7C83

Preview Lab

Preview with #6248CB

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

Preview Lab → · Contrast checker → · Palette generator →

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