#6242CE#6242CE

#6242CE is a mid, highly saturated violet. Relative luminance 0.109; OKLCH L 49.9% C 0.204 H 287.0°. Best body text is #FFFFFF at 6.58:1 contrast (WCAG AA passes).

Color values

HEX#6242CE
RGBrgb(98, 66, 206)
HSLhsl(254, 59%, 53%)
HSVhsv(254, 68%, 81%)
CMYKcmyk(52.4%, 68%, 0%, 19.2%)
CIE-LABlab(39.49, 48.59, -67.87)
CIE-LCHlch(39.49, 83.47, 305.60°)
OKLaboklab(49.95% 0.0597 -0.1949)
OKLCHoklch(49.95% 0.204 287)
XYZxyz(18.1225, 10.9484, 59.5389)
Luminance0.1095 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6242CE #AECE42
analogous
#4268CE #6242CE #A842CE
triadic
#6242CE #CE6242 #42CE62
tetradic
#6242CE #CE4268 #AECE42 #42CEA8
square
#6242CE #CE4268 #AECE42 #42CEA8
split-complementary
#6242CE #CEA842 #68CE42
monochromatic
#331F77 #482BA7 #6242CE #8A73DB #B3A3E7

Accessibility & contrast

On white

6.58
#6242CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.19
#6242CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6242CE
6.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6242CE#FFFFFF#000000##FFFFFF
##6242CE1.006.583.196.58
#FFFFFF6.581.0021.001.00
#0000003.1921.001.0021.00
##FFFFFF6.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060D2
Deuteranopia (green-blind)
#0059CB
Tritanopia (blue-blind)
#376683
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #6242ce;
/* rgb */ color: rgb(98, 66, 206);
/* oklch */ color: oklch(49.9% 0.204 287.0);
Tailwind
colors: {
  custom: {
    50: '#9879de',
    500: '#6242ce',
    950: '#000000',
  },
}
SCSS
$custom: #6242ce;
$custom-light: #9879de;
$custom-dark: #000000;
JSON
{
  "hex": "#6242ce",
  "rgb": {
    "r": 98,
    "g": 66,
    "b": 206
  },
  "hsl": {
    "h": 253.714,
    "s": 58.824,
    "l": 53.333
  },
  "oklch": {
    "l": 0.49946,
    "c": 0.20388,
    "h": 287
  },
  "luminance": 0.10949
}

Semantic roles & 50–950 ramp

primary
#6242CE
secondary
#C6D498
accent
#E246BE
background
#FAF7FD
surface
#F3EDFB
border
#CDC8D4
text
#0F0915
muted
#7F7B83

Preview Lab

Preview with #6242CE

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

Preview Lab → · Contrast checker → · Palette generator →

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