#6148CC#6148CC

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

Color values

HEX#6148CC
RGBrgb(97, 72, 204)
HSLhsl(251, 56%, 54%)
HSVhsv(251, 65%, 80%)
CMYKcmyk(52.5%, 64.7%, 0%, 20%)
CIE-LABlab(40.47, 44.50, -65.13)
CIE-LCHlch(40.47, 78.88, 304.34°)
OKLaboklab(50.58% 0.053 -0.1869)
OKLCHoklch(50.58% 0.194 285.8)
XYZxyz(18.1430, 11.5348, 58.3855)
Luminance0.1154 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6148CC #B3CC48
analogous
#4871CC #6148CC #A348CC
triadic
#6148CC #CC6148 #48CC61
tetradic
#6148CC #CC4871 #B3CC48 #48CCA3
square
#6148CC #CC4871 #B3CC48 #48CCA3
split-complementary
#6148CC #CCA348 #71CC48
monochromatic
#322178 #462FA8 #6148CC #8A78D9 #B4A8E7

Accessibility & contrast

On white

6.35
#6148CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.31
#6148CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6148CC
6.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6148CC#FFFFFF#000000##FFFFFF
##6148CC1.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)
#0063D0
Deuteranopia (green-blind)
#005BC9
Tritanopia (blue-blind)
#366984
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #6148cc;
/* rgb */ color: rgb(97, 72, 204);
/* oklch */ color: oklch(50.6% 0.194 285.8);
Tailwind
colors: {
  custom: {
    50: '#977cdc',
    500: '#6148cc',
    950: '#000000',
  },
}
SCSS
$custom: #6148cc;
$custom-light: #977cdc;
$custom-dark: #000000;
JSON
{
  "hex": "#6148cc",
  "rgb": {
    "r": 97,
    "g": 72,
    "b": 204
  },
  "hsl": {
    "h": 251.364,
    "s": 56.41,
    "l": 54.118
  },
  "oklch": {
    "l": 0.50575,
    "c": 0.19429,
    "h": 285.8
  },
  "luminance": 0.11536
}

Semantic roles & 50–950 ramp

primary
#6148CC
secondary
#C9D49C
accent
#E048C3
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0F0A15
muted
#7E7C83

Preview Lab

Preview with #6148CC

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

Preview Lab → · Contrast checker → · Palette generator →

#6148CC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva