#6242E0#6242E0

#6242E0 is a mid, highly saturated violet. Relative luminance 0.119; OKLCH L 51.5% C 0.225 H 284.5°. Best body text is #FFFFFF at 6.22:1 contrast (WCAG AA passes).

Color values

HEX#6242E0
RGBrgb(98, 66, 224)
HSLhsl(252, 72%, 57%)
HSVhsv(252, 71%, 88%)
CMYKcmyk(56.3%, 70.5%, 0%, 12.2%)
CIE-LABlab(41.01, 53.79, -75.72)
CIE-LCHlch(41.01, 92.88, 305.39°)
OKLaboklab(51.5% 0.0565 -0.2179)
OKLCHoklch(51.5% 0.225 284.5)
XYZxyz(20.4357, 11.8737, 71.7216)
Luminance0.1187 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6242E0 #C0E042
analogous
#4271E0 #6242E0 #B142E0
triadic
#6242E0 #E06242 #42E062
tetradic
#6242E0 #E04271 #C0E042 #42E0B1
square
#6242E0 #E04271 #C0E042 #42E0B1
split-complementary
#6242E0 #E0B142 #71E042
monochromatic
#301890 #4220C5 #6242E0 #8E77E9 #B9ABF1

Accessibility & contrast

On white

6.22
#6242E0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.38
#6242E0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6242E0
6.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6242E0#FFFFFF#000000##FFFFFF
##6242E01.006.223.386.22
#FFFFFF6.221.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065E5
Deuteranopia (green-blind)
#005CDD
Tritanopia (blue-blind)
#226C8D
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #6242e0;
/* rgb */ color: rgb(98, 66, 224);
/* oklch */ color: oklch(51.5% 0.225 284.5);
Tailwind
colors: {
  custom: {
    50: '#9b79eb',
    500: '#6242e0',
    950: '#000000',
  },
}
SCSS
$custom: #6242e0;
$custom-light: #9b79eb;
$custom-dark: #000000;
JSON
{
  "hex": "#6242e0",
  "rgb": {
    "r": 98,
    "g": 66,
    "b": 224
  },
  "hsl": {
    "h": 252.152,
    "s": 71.818,
    "l": 56.863
  },
  "oklch": {
    "l": 0.51501,
    "c": 0.22516,
    "h": 284.5
  },
  "luminance": 0.11875
}

Semantic roles & 50–950 ramp

primary
#6242E0
secondary
#D2DF9F
accent
#EF39CA
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #6242E0

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

Preview Lab → · Contrast checker → · Palette generator →

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