#6242BB#6242BB

#6242BB is a mid, vivid violet. Relative luminance 0.101; OKLCH L 48.4% C 0.181 H 290.1°. Best body text is #FFFFFF at 6.96:1 contrast (WCAG AA passes).

Color values

HEX#6242BB
RGBrgb(98, 66, 187)
HSLhsl(256, 48%, 50%)
HSVhsv(256, 65%, 73%)
CMYKcmyk(47.6%, 64.7%, 0%, 26.7%)
CIE-LABlab(37.99, 43.10, -59.25)
CIE-LCHlch(37.99, 73.27, 306.04°)
OKLaboklab(48.39% 0.0622 -0.1696)
OKLCHoklch(48.39% 0.181 290.1)
XYZxyz(15.9523, 10.0803, 48.1092)
Luminance0.1008 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6242BB #9BBB42
analogous
#425EBB #6242BB #9F42BB
triadic
#6242BB #BB6242 #42BB62
tetradic
#6242BB #BB425E #9BBB42 #42BB9F
square
#6242BB #BB425E #9BBB42 #42BB9F
split-complementary
#6242BB #BB9F42 #5EBB42
monochromatic
#332261 #4A328E #6242BB #876ECC #AD9CDC

Accessibility & contrast

On white

6.96
#6242BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.02
#6242BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6242BB
6.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6242BB#FFFFFF#000000##FFFFFF
##6242BB1.006.963.026.96
#FFFFFF6.961.0021.001.00
#0000003.0221.001.0021.00
##FFFFFF6.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CBF
Deuteranopia (green-blind)
#0057B9
Tritanopia (blue-blind)
#455F78
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #6242bb;
/* rgb */ color: rgb(98, 66, 187);
/* oklch */ color: oklch(48.4% 0.181 290.1);
Tailwind
colors: {
  custom: {
    50: '#9678d0',
    500: '#6242bb',
    950: '#000000',
  },
}
SCSS
$custom: #6242bb;
$custom-light: #9678d0;
$custom-dark: #000000;
JSON
{
  "hex": "#6242bb",
  "rgb": {
    "r": 98,
    "g": 66,
    "b": 187
  },
  "hsl": {
    "h": 255.868,
    "s": 47.826,
    "l": 49.608
  },
  "oklch": {
    "l": 0.48391,
    "c": 0.18068,
    "h": 290.1
  },
  "luminance": 0.10081
}

Semantic roles & 50–950 ramp

primary
#6242BB
secondary
#B9C891
accent
#D750B4
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0E0914
muted
#7E7B82

Preview Lab

Preview with #6242BB

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

Preview Lab → · Contrast checker → · Palette generator →

#6242BB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva