#6242E7#6242E7

#6242E7 is a mid, highly saturated violet. Relative luminance 0.123; OKLCH L 52.1% C 0.233 H 283.7°. Best body text is #FFFFFF at 6.08:1 contrast (WCAG AA passes).

Color values

HEX#6242E7
RGBrgb(98, 66, 231)
HSLhsl(252, 77%, 58%)
HSVhsv(252, 71%, 91%)
CMYKcmyk(57.6%, 71.4%, 0%, 9.4%)
CIE-LABlab(41.63, 55.80, -78.69)
CIE-LCHlch(41.63, 96.47, 305.34°)
OKLaboklab(52.12% 0.0551 -0.2267)
OKLCHoklch(52.12% 0.233 283.7)
XYZxyz(21.4046, 12.2613, 76.8246)
Luminance0.1226 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6242E7 #C7E742
analogous
#4274E7 #6242E7 #B442E7
triadic
#6242E7 #E76242 #42E762
tetradic
#6242E7 #E74274 #C7E742 #42E7B4
square
#6242E7 #E74274 #C7E742 #42E7B4
split-complementary
#6242E7 #E7B442 #74E742
monochromatic
#2E149B #3E1BD1 #6242E7 #8F78EE #BCAFF5

Accessibility & contrast

On white

6.08
#6242E7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.45
#6242E7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6242E7
6.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6242E7#FFFFFF#000000##FFFFFF
##6242E71.006.083.456.08
#FFFFFF6.081.0021.001.00
#0000003.4521.001.0021.00
##FFFFFF6.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067EC
Deuteranopia (green-blind)
#005DE4
Tritanopia (blue-blind)
#136F91
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #6242e7;
/* rgb */ color: rgb(98, 66, 231);
/* oklch */ color: oklch(52.1% 0.233 283.7);
Tailwind
colors: {
  custom: {
    50: '#9c7af0',
    500: '#6242e7',
    950: '#000000',
  },
}
SCSS
$custom: #6242e7;
$custom-light: #9c7af0;
$custom-dark: #000000;
JSON
{
  "hex": "#6242e7",
  "rgb": {
    "r": 98,
    "g": 66,
    "b": 231
  },
  "hsl": {
    "h": 251.636,
    "s": 77.465,
    "l": 58.235
  },
  "oklch": {
    "l": 0.52124,
    "c": 0.23327,
    "h": 283.7
  },
  "luminance": 0.12263
}

Semantic roles & 50–950 ramp

primary
#6242E7
secondary
#D7E3A2
accent
#F434CF
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#100917
muted
#7F7B85

Preview Lab

Preview with #6242E7

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

Preview Lab → · Contrast checker → · Palette generator →

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