#6242D9#6242D9

#6242D9 is a mid, highly saturated violet. Relative luminance 0.115; OKLCH L 50.9% C 0.217 H 285.5°. Best body text is #FFFFFF at 6.36:1 contrast (WCAG AA passes).

Color values

HEX#6242D9
RGBrgb(98, 66, 217)
HSLhsl(253, 67%, 55%)
HSVhsv(253, 70%, 85%)
CMYKcmyk(54.8%, 69.6%, 0%, 14.9%)
CIE-LABlab(40.41, 51.77, -72.70)
CIE-LCHlch(40.41, 89.25, 305.45°)
OKLaboklab(50.89% 0.0578 -0.2091)
OKLCHoklch(50.89% 0.217 285.5)
XYZxyz(19.5058, 11.5017, 66.8244)
Luminance0.1150 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6242D9 #B9D942
analogous
#426DD9 #6242D9 #AD42D9
triadic
#6242D9 #D96242 #42D962
tetradic
#6242D9 #D9426D #B9D942 #42D9AD
square
#6242D9 #D9426D #B9D942 #42D9AD
split-complementary
#6242D9 #D9AD42 #6DD942
monochromatic
#321B86 #4425B9 #6242D9 #8C75E3 #B7A8ED

Accessibility & contrast

On white

6.36
#6242D9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.30
#6242D9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6242D9
6.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6242D9#FFFFFF#000000##FFFFFF
##6242D91.006.363.306.36
#FFFFFF6.361.0021.001.00
#0000003.3021.001.0021.00
##FFFFFF6.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063DE
Deuteranopia (green-blind)
#005BD6
Tritanopia (blue-blind)
#2C6A89
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #6242d9;
/* rgb */ color: rgb(98, 66, 217);
/* oklch */ color: oklch(50.9% 0.217 285.5);
Tailwind
colors: {
  custom: {
    50: '#9a79e6',
    500: '#6242d9',
    950: '#000000',
  },
}
SCSS
$custom: #6242d9;
$custom-light: #9a79e6;
$custom-dark: #000000;
JSON
{
  "hex": "#6242d9",
  "rgb": {
    "r": 98,
    "g": 66,
    "b": 217
  },
  "hsl": {
    "h": 252.715,
    "s": 66.52,
    "l": 55.49
  },
  "oklch": {
    "l": 0.50887,
    "c": 0.21696,
    "h": 285.5
  },
  "luminance": 0.11503
}

Semantic roles & 50–950 ramp

primary
#6242D9
secondary
#CEDB9C
accent
#E93EC5
background
#FAF7FE
surface
#F4EEFC
border
#CEC9D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #6242D9

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

Preview Lab → · Contrast checker → · Palette generator →

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