#6242EA#6242EA

#6242EA is a mid, highly saturated violet. Relative luminance 0.124; OKLCH L 52.4% C 0.237 H 283.3°. Best body text is #FFFFFF at 6.02:1 contrast (WCAG AA passes).

Color values

HEX#6242EA
RGBrgb(98, 66, 234)
HSLhsl(251, 80%, 59%)
HSVhsv(251, 72%, 92%)
CMYKcmyk(58.1%, 71.8%, 0%, 8.2%)
CIE-LABlab(41.89, 56.66, -79.95)
CIE-LCHlch(41.89, 98.00, 305.33°)
OKLaboklab(52.39% 0.0545 -0.2304)
OKLCHoklch(52.39% 0.237 283.3)
XYZxyz(21.8319, 12.4322, 79.0752)
Luminance0.1243 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6242EA #CAEA42
analogous
#4276EA #6242EA #B642EA
triadic
#6242EA #EA6242 #42EA62
tetradic
#6242EA #EA4276 #CAEA42 #42EAB6
square
#6242EA #EA4276 #CAEA42 #42EAB6
split-complementary
#6242EA #EAB642 #76EA42
monochromatic
#2D12A0 #3C18D7 #6242EA #9079F0 #BEB0F6

Accessibility & contrast

On white

6.02
#6242EA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.49
#6242EA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6242EA
6.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6242EA#FFFFFF#000000##FFFFFF
##6242EA1.006.023.496.02
#FFFFFF6.021.0021.001.00
#0000003.4921.001.0021.00
##FFFFFF6.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068EF
Deuteranopia (green-blind)
#005DE7
Tritanopia (blue-blind)
#077092
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #6242ea;
/* rgb */ color: rgb(98, 66, 234);
/* oklch */ color: oklch(52.4% 0.237 283.3);
Tailwind
colors: {
  custom: {
    50: '#9d7af2',
    500: '#6242ea',
    950: '#000000',
  },
}
SCSS
$custom: #6242ea;
$custom-light: #9d7af2;
$custom-dark: #000000;
JSON
{
  "hex": "#6242ea",
  "rgb": {
    "r": 98,
    "g": 66,
    "b": 234
  },
  "hsl": {
    "h": 251.429,
    "s": 80,
    "l": 58.824
  },
  "oklch": {
    "l": 0.52394,
    "c": 0.23672,
    "h": 283.3
  },
  "luminance": 0.12434
}

Semantic roles & 50–950 ramp

primary
#6242EA
secondary
#D8E5A3
accent
#F631D1
background
#FAF7FF
surface
#F4EEFE
border
#CEC9D6
text
#100917
muted
#7F7B85

Preview Lab

Preview with #6242EA

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

Preview Lab → · Contrast checker → · Palette generator →

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