#6242DF#6242DF

#6242DF is a mid, highly saturated violet. Relative luminance 0.118; OKLCH L 51.4% C 0.224 H 284.7°. Best body text is #FFFFFF at 6.24:1 contrast (WCAG AA passes).

Color values

HEX#6242DF
RGBrgb(98, 66, 223)
HSLhsl(252, 71%, 57%)
HSVhsv(252, 70%, 87%)
CMYKcmyk(56.1%, 70.4%, 0%, 12.5%)
CIE-LABlab(40.93, 53.50, -75.29)
CIE-LCHlch(40.93, 92.36, 305.40°)
OKLaboklab(51.41% 0.0567 -0.2167)
OKLCHoklch(51.41% 0.224 284.7)
XYZxyz(20.3004, 11.8196, 71.0094)
Luminance0.1182 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6242DF #BFDF42
analogous
#4271DF #6242DF #B042DF
triadic
#6242DF #DF6242 #42DF62
tetradic
#6242DF #DF4271 #BFDF42 #42DFB0
square
#6242DF #DF4271 #BFDF42 #42DFB0
split-complementary
#6242DF #DFB042 #71DF42
monochromatic
#30188E #4221C3 #6242DF #8D76E8 #B9ABF1

Accessibility & contrast

On white

6.24
#6242DF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.36
#6242DF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6242DF
6.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6242DF#FFFFFF#000000##FFFFFF
##6242DF1.006.243.366.24
#FFFFFF6.241.0021.001.00
#0000003.3621.001.0021.00
##FFFFFF6.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065E4
Deuteranopia (green-blind)
#005CDC
Tritanopia (blue-blind)
#246C8C
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #6242df;
/* rgb */ color: rgb(98, 66, 223);
/* oklch */ color: oklch(51.4% 0.224 284.7);
Tailwind
colors: {
  custom: {
    50: '#9b79ea',
    500: '#6242df',
    950: '#000000',
  },
}
SCSS
$custom: #6242df;
$custom-light: #9b79ea;
$custom-dark: #000000;
JSON
{
  "hex": "#6242df",
  "rgb": {
    "r": 98,
    "g": 66,
    "b": 223
  },
  "hsl": {
    "h": 252.229,
    "s": 71.041,
    "l": 56.667
  },
  "oklch": {
    "l": 0.51412,
    "c": 0.224,
    "h": 284.7
  },
  "luminance": 0.11821
}

Semantic roles & 50–950 ramp

primary
#6242DF
secondary
#D1DF9E
accent
#EE3AC9
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #6242DF

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

Preview Lab → · Contrast checker → · Palette generator →

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