#6242CF#6242CF

#6242CF is a mid, highly saturated violet. Relative luminance 0.110; OKLCH L 50.0% C 0.205 H 286.9°. Best body text is #FFFFFF at 6.56:1 contrast (WCAG AA passes).

Color values

HEX#6242CF
RGBrgb(98, 66, 207)
HSLhsl(254, 59%, 54%)
HSVhsv(254, 68%, 81%)
CMYKcmyk(52.7%, 68.1%, 0%, 18.8%)
CIE-LABlab(39.58, 48.87, -68.31)
CIE-LCHlch(39.58, 84.00, 305.58°)
OKLaboklab(50.03% 0.0595 -0.1962)
OKLCHoklch(50.03% 0.205 286.9)
XYZxyz(18.2444, 10.9972, 60.1807)
Luminance0.1100 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6242CF #AFCF42
analogous
#4268CF #6242CF #A842CF
triadic
#6242CF #CF6242 #42CF62
tetradic
#6242CF #CF4268 #AFCF42 #42CFA8
square
#6242CF #CF4268 #AFCF42 #42CFA8
split-complementary
#6242CF #CFA842 #68CF42
monochromatic
#331F78 #472BA9 #6242CF #8B73DB #B3A4E8

Accessibility & contrast

On white

6.56
#6242CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.20
#6242CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6242CF
6.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6242CF#FFFFFF#000000##FFFFFF
##6242CF1.006.563.206.56
#FFFFFF6.561.0021.001.00
#0000003.2021.001.0021.00
##FFFFFF6.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061D3
Deuteranopia (green-blind)
#0059CC
Tritanopia (blue-blind)
#376683
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #6242cf;
/* rgb */ color: rgb(98, 66, 207);
/* oklch */ color: oklch(50.0% 0.205 286.9);
Tailwind
colors: {
  custom: {
    50: '#9979df',
    500: '#6242cf',
    950: '#000000',
  },
}
SCSS
$custom: #6242cf;
$custom-light: #9979df;
$custom-dark: #000000;
JSON
{
  "hex": "#6242cf",
  "rgb": {
    "r": 98,
    "g": 66,
    "b": 207
  },
  "hsl": {
    "h": 253.617,
    "s": 59.494,
    "l": 53.529
  },
  "oklch": {
    "l": 0.5003,
    "c": 0.20507,
    "h": 286.9
  },
  "luminance": 0.10998
}

Semantic roles & 50–950 ramp

primary
#6242CF
secondary
#C7D598
accent
#E345BF
background
#FAF7FD
surface
#F3EDFB
border
#CDC8D4
text
#0F0915
muted
#7F7B83

Preview Lab

Preview with #6242CF

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

Preview Lab → · Contrast checker → · Palette generator →

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