#6242D7#6242D7

#6242D7 is a mid, highly saturated violet. Relative luminance 0.114; OKLCH L 50.7% C 0.215 H 285.7°. Best body text is #FFFFFF at 6.40:1 contrast (WCAG AA passes).

Color values

HEX#6242D7
RGBrgb(98, 66, 215)
HSLhsl(253, 65%, 55%)
HSVhsv(253, 69%, 84%)
CMYKcmyk(54.4%, 69.3%, 0%, 15.7%)
CIE-LABlab(40.24, 51.19, -71.83)
CIE-LCHlch(40.24, 88.20, 305.48°)
OKLaboklab(50.71% 0.0582 -0.2066)
OKLCHoklch(50.71% 0.215 285.7)
XYZxyz(19.2473, 11.3983, 65.4627)
Luminance0.1140 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6242D7 #B7D742
analogous
#426CD7 #6242D7 #AD42D7
triadic
#6242D7 #D76242 #42D762
tetradic
#6242D7 #D7426C #B7D742 #42D7AD
square
#6242D7 #D7426C #B7D742 #42D7AD
split-complementary
#6242D7 #D7AD42 #6CD742
monochromatic
#321C83 #4526B5 #6242D7 #8C75E2 #B6A7EC

Accessibility & contrast

On white

6.40
#6242D7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.28
#6242D7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6242D7
6.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6242D7#FFFFFF#000000##FFFFFF
##6242D71.006.403.286.40
#FFFFFF6.401.0021.001.00
#0000003.2821.001.0021.00
##FFFFFF6.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063DB
Deuteranopia (green-blind)
#005AD4
Tritanopia (blue-blind)
#2E6988
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #6242d7;
/* rgb */ color: rgb(98, 66, 215);
/* oklch */ color: oklch(50.7% 0.215 285.7);
Tailwind
colors: {
  custom: {
    50: '#9a79e4',
    500: '#6242d7',
    950: '#000000',
  },
}
SCSS
$custom: #6242d7;
$custom-light: #9a79e4;
$custom-dark: #000000;
JSON
{
  "hex": "#6242d7",
  "rgb": {
    "r": 98,
    "g": 66,
    "b": 215
  },
  "hsl": {
    "h": 252.886,
    "s": 65.066,
    "l": 55.098
  },
  "oklch": {
    "l": 0.50714,
    "c": 0.2146,
    "h": 285.7
  },
  "luminance": 0.11399
}

Semantic roles & 50–950 ramp

primary
#6242D7
secondary
#CCDA9B
accent
#E840C4
background
#FAF7FE
surface
#F4EDFC
border
#CEC8D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #6242D7

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

Preview Lab → · Contrast checker → · Palette generator →

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