#6242DC#6242DC

#6242DC is a mid, highly saturated violet. Relative luminance 0.117; OKLCH L 51.1% C 0.220 H 285.1°. Best body text is #FFFFFF at 6.30:1 contrast (WCAG AA passes).

Color values

HEX#6242DC
RGBrgb(98, 66, 220)
HSLhsl(252, 69%, 56%)
HSVhsv(252, 70%, 86%)
CMYKcmyk(55.5%, 70%, 0%, 13.7%)
CIE-LABlab(40.67, 52.63, -74.00)
CIE-LCHlch(40.67, 90.81, 305.42°)
OKLaboklab(51.15% 0.0573 -0.2129)
OKLCHoklch(51.15% 0.22 285.1)
XYZxyz(19.8996, 11.6592, 68.8981)
Luminance0.1166 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6242DC #BCDC42
analogous
#426FDC #6242DC #AF42DC
triadic
#6242DC #DC6242 #42DC62
tetradic
#6242DC #DC426F #BCDC42 #42DCAF
square
#6242DC #DC426F #BCDC42 #42DCAF
split-complementary
#6242DC #DCAF42 #6FDC42
monochromatic
#311A8A #4323BE #6242DC #8D76E6 #B8A9EF

Accessibility & contrast

On white

6.30
#6242DC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.33
#6242DC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6242DC
6.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6242DC#FFFFFF#000000##FFFFFF
##6242DC1.006.303.336.30
#FFFFFF6.301.0021.001.00
#0000003.3321.001.0021.00
##FFFFFF6.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064E1
Deuteranopia (green-blind)
#005BD9
Tritanopia (blue-blind)
#286B8A
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #6242dc;
/* rgb */ color: rgb(98, 66, 220);
/* oklch */ color: oklch(51.1% 0.220 285.1);
Tailwind
colors: {
  custom: {
    50: '#9a79e8',
    500: '#6242dc',
    950: '#000000',
  },
}
SCSS
$custom: #6242dc;
$custom-light: #9a79e8;
$custom-dark: #000000;
JSON
{
  "hex": "#6242dc",
  "rgb": {
    "r": 98,
    "g": 66,
    "b": 220
  },
  "hsl": {
    "h": 252.468,
    "s": 68.75,
    "l": 56.078
  },
  "oklch": {
    "l": 0.51149,
    "c": 0.22049,
    "h": 285.1
  },
  "luminance": 0.1166
}

Semantic roles & 50–950 ramp

primary
#6242DC
secondary
#CFDD9D
accent
#EC3CC7
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #6242DC

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

Preview Lab → · Contrast checker → · Palette generator →

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