#6242FF#6242FF

#6242FF is a mid, highly saturated violet. Relative luminance 0.137; OKLCH L 54.3% C 0.260 H 281.0°. Best body text is #FFFFFF at 5.61:1 contrast (WCAG AA passes).

Color values

HEX#6242FF
RGBrgb(98, 66, 255)
HSLhsl(250, 100%, 63%)
HSVhsv(250, 74%, 100%)
CMYKcmyk(61.6%, 74.1%, 0%, 0%)
CIE-LABlab(43.82, 62.66, -88.59)
CIE-LCHlch(43.82, 108.51, 305.27°)
OKLaboklab(54.33% 0.0498 -0.2556)
OKLCHoklch(54.33% 0.26 281)
XYZxyz(25.0295, 13.7112, 95.9159)
Luminance0.1371 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6242FF #DFFF42
analogous
#4280FF #6242FF #C142FF
triadic
#6242FF #FF6242 #42FF62
tetradic
#6242FF #FF4280 #DFFF42 #42FFC1
square
#6242FF #FF4280 #DFFF42 #42FFC1
split-complementary
#6242FF #FFC142 #80FF42
monochromatic
#2200C7 #2F05FF #6242FF #957FFF #C8BCFF

Accessibility & contrast

On white

5.61
#6242FF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.74
#6242FF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6242FF
5.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6242FF#FFFFFF#000000##FFFFFF
##6242FF1.005.613.745.61
#FFFFFF5.611.0021.001.00
#0000003.7421.001.0021.00
##FFFFFF5.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EFF
Deuteranopia (green-blind)
#0061FC
Tritanopia (blue-blind)
#00789E
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #6242ff;
/* rgb */ color: rgb(98, 66, 255);
/* oklch */ color: oklch(54.3% 0.260 281.0);
Tailwind
colors: {
  custom: {
    50: '#a07bff',
    500: '#6242ff',
    950: '#000000',
  },
}
SCSS
$custom: #6242ff;
$custom-light: #a07bff;
$custom-dark: #000000;
JSON
{
  "hex": "#6242ff",
  "rgb": {
    "r": 98,
    "g": 66,
    "b": 255
  },
  "hsl": {
    "h": 250.159,
    "s": 100,
    "l": 62.941
  },
  "oklch": {
    "l": 0.5433,
    "c": 0.26041,
    "h": 281
  },
  "luminance": 0.13713
}

Semantic roles & 50–950 ramp

primary
#6242FF
secondary
#E5F0AC
accent
#E600BF
background
#FAF7FF
surface
#F4EEFF
border
#CEC9D7
text
#100A18
muted
#7F7C86

Preview Lab

Preview with #6242FF

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

Preview Lab → · Contrast checker → · Palette generator →

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