#6248BA#6248BA

#6248BA is a mid, vivid violet. Relative luminance 0.108; OKLCH L 49.3% C 0.171 H 289.0°. Best body text is #FFFFFF at 6.66:1 contrast (WCAG AA passes).

Color values

HEX#6248BA
RGBrgb(98, 72, 186)
HSLhsl(254, 45%, 51%)
HSVhsv(254, 61%, 73%)
CMYKcmyk(47.3%, 61.3%, 0%, 27.1%)
CIE-LABlab(39.20, 39.37, -56.69)
CIE-LCHlch(39.20, 69.02, 304.78°)
OKLaboklab(49.25% 0.0559 -0.1621)
OKLCHoklch(49.25% 0.171 289)
XYZxyz(16.2148, 10.7759, 47.6705)
Luminance0.1078 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6248BA #A0BA48
analogous
#4867BA #6248BA #9B48BA
triadic
#6248BA #BA6248 #48BA62
tetradic
#6248BA #BA4867 #A0BA48 #48BA9B
square
#6248BA #BA4867 #A0BA48 #48BA9B
split-complementary
#6248BA #BA9B48 #67BA48
monochromatic
#332562 #4A368F #6248BA #8874CB #AEA1DC

Accessibility & contrast

On white

6.66
#6248BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.16
#6248BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6248BA
6.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6248BA#FFFFFF#000000##FFFFFF
##6248BA1.006.663.166.66
#FFFFFF6.661.0021.001.00
#0000003.1621.001.0021.00
##FFFFFF6.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FBE
Deuteranopia (green-blind)
#005AB8
Tritanopia (blue-blind)
#46627A
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #6248ba;
/* rgb */ color: rgb(98, 72, 186);
/* oklch */ color: oklch(49.3% 0.171 289.0);
Tailwind
colors: {
  custom: {
    50: '#957ccf',
    500: '#6248ba',
    950: '#000000',
  },
}
SCSS
$custom: #6248ba;
$custom-light: #957ccf;
$custom-dark: #000000;
JSON
{
  "hex": "#6248ba",
  "rgb": {
    "r": 98,
    "g": 72,
    "b": 186
  },
  "hsl": {
    "h": 253.684,
    "s": 45.238,
    "l": 50.588
  },
  "oklch": {
    "l": 0.4925,
    "c": 0.17146,
    "h": 289
  },
  "luminance": 0.10777
}

Semantic roles & 50–950 ramp

primary
#6248BA
secondary
#BDC896
accent
#D553B7
background
#F9F7FC
surface
#F2EEF9
border
#CCC9D2
text
#0E0914
muted
#7E7B82

Preview Lab

Preview with #6248BA

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

Preview Lab → · Contrast checker → · Palette generator →

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