#6342FF#6342FF

#6342FF is a mid, highly saturated violet. Relative luminance 0.138; OKLCH L 54.4% C 0.260 H 281.3°. Best body text is #FFFFFF at 5.59:1 contrast (WCAG AA passes).

Color values

HEX#6342FF
RGBrgb(99, 66, 255)
HSLhsl(250, 100%, 63%)
HSVhsv(250, 74%, 100%)
CMYKcmyk(61.2%, 74.1%, 0%, 0%)
CIE-LABlab(43.90, 62.77, -88.45)
CIE-LCHlch(43.90, 108.46, 305.36°)
OKLaboklab(54.41% 0.0512 -0.2552)
OKLCHoklch(54.41% 0.26 281.3)
XYZxyz(25.1381, 13.7672, 95.9210)
Luminance0.1377 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6342FF #DEFF42
analogous
#427FFF #6342FF #C142FF
triadic
#6342FF #FF6342 #42FF63
tetradic
#6342FF #FF427F #DEFF42 #42FFC1
square
#6342FF #FF427F #DEFF42 #42FFC1
split-complementary
#6342FF #FFC142 #7FFF42
monochromatic
#2300C7 #3005FF #6342FF #967FFF #C8BCFF

Accessibility & contrast

On white

5.59
#6342FF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.75
#6342FF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6342FF
5.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6342FF#FFFFFF#000000##FFFFFF
##6342FF1.005.593.755.59
#FFFFFF5.591.0021.001.00
#0000003.7521.001.0021.00
##FFFFFF5.591.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: #6342ff;
/* rgb */ color: rgb(99, 66, 255);
/* oklch */ color: oklch(54.4% 0.260 281.3);
Tailwind
colors: {
  custom: {
    50: '#a17bff',
    500: '#6342ff',
    950: '#000000',
  },
}
SCSS
$custom: #6342ff;
$custom-light: #a17bff;
$custom-dark: #000000;
JSON
{
  "hex": "#6342ff",
  "rgb": {
    "r": 99,
    "g": 66,
    "b": 255
  },
  "hsl": {
    "h": 250.476,
    "s": 100,
    "l": 62.941
  },
  "oklch": {
    "l": 0.54407,
    "c": 0.26025,
    "h": 281.3
  },
  "luminance": 0.13769
}

Semantic roles & 50–950 ramp

primary
#6342FF
secondary
#E5F0AC
accent
#E600BD
background
#FAF7FF
surface
#F4EEFF
border
#CEC9D7
text
#110A18
muted
#807C86

Preview Lab

Preview with #6342FF

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

Preview Lab → · Contrast checker → · Palette generator →

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