#6242DD#6242DD

#6242DD is a mid, highly saturated violet. Relative luminance 0.117; OKLCH L 51.2% C 0.222 H 284.9°. Best body text is #FFFFFF at 6.28:1 contrast (WCAG AA passes).

Color values

HEX#6242DD
RGBrgb(98, 66, 221)
HSLhsl(252, 70%, 56%)
HSVhsv(252, 70%, 87%)
CMYKcmyk(55.7%, 70.1%, 0%, 13.3%)
CIE-LABlab(40.76, 52.92, -74.43)
CIE-LCHlch(40.76, 91.32, 305.41°)
OKLaboklab(51.24% 0.0571 -0.2142)
OKLCHoklch(51.24% 0.222 284.9)
XYZxyz(20.0324, 11.7124, 69.5977)
Luminance0.1171 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6242DD #BDDD42
analogous
#4270DD #6242DD #B042DD
triadic
#6242DD #DD6242 #42DD62
tetradic
#6242DD #DD4270 #BDDD42 #42DDB0
square
#6242DD #DD4270 #BDDD42 #42DDB0
split-complementary
#6242DD #DDB042 #70DD42
monochromatic
#31198C #4322BF #6242DD #8D76E6 #B8AAF0

Accessibility & contrast

On white

6.28
#6242DD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#6242DD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6242DD
6.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6242DD#FFFFFF#000000##FFFFFF
##6242DD1.006.283.346.28
#FFFFFF6.281.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064E2
Deuteranopia (green-blind)
#005BDA
Tritanopia (blue-blind)
#276B8B
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #6242dd;
/* rgb */ color: rgb(98, 66, 221);
/* oklch */ color: oklch(51.2% 0.222 284.9);
Tailwind
colors: {
  custom: {
    50: '#9b79e9',
    500: '#6242dd',
    950: '#000000',
  },
}
SCSS
$custom: #6242dd;
$custom-light: #9b79e9;
$custom-dark: #000000;
JSON
{
  "hex": "#6242dd",
  "rgb": {
    "r": 98,
    "g": 66,
    "b": 221
  },
  "hsl": {
    "h": 252.387,
    "s": 69.507,
    "l": 56.275
  },
  "oklch": {
    "l": 0.51237,
    "c": 0.22166,
    "h": 284.9
  },
  "luminance": 0.11714
}

Semantic roles & 50–950 ramp

primary
#6242DD
secondary
#D0DD9D
accent
#EC3BC8
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #6242DD

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

Preview Lab → · Contrast checker → · Palette generator →

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