#6142CA#6142CA

#6142CA is a mid, vivid violet. Relative luminance 0.107; OKLCH L 49.5% C 0.199 H 287.2°. Best body text is #FFFFFF at 6.69:1 contrast (WCAG AA passes).

Color values

HEX#6142CA
RGBrgb(97, 66, 202)
HSLhsl(254, 56%, 53%)
HSVhsv(254, 67%, 79%)
CMYKcmyk(52%, 67.3%, 0%, 20.8%)
CIE-LABlab(39.07, 47.26, -66.24)
CIE-LCHlch(39.07, 81.37, 305.50°)
OKLaboklab(49.52% 0.0589 -0.1902)
OKLCHoklch(49.52% 0.199 287.2)
XYZxyz(17.5355, 10.7012, 57.0072)
Luminance0.1070 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6142CA #ABCA42
analogous
#4267CA #6142CA #A542CA
triadic
#6142CA #CA6142 #42CA61
tetradic
#6142CA #CA4267 #ABCA42 #42CAA5
square
#6142CA #CA4267 #ABCA42 #42CAA5
split-complementary
#6142CA #CAA542 #67CA42
monochromatic
#332072 #482DA2 #6142CA #8972D7 #B1A2E5

Accessibility & contrast

On white

6.69
#6142CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.14
#6142CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6142CA
6.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6142CA#FFFFFF#000000##FFFFFF
##6142CA1.006.693.146.69
#FFFFFF6.691.0021.001.00
#0000003.1421.001.0021.00
##FFFFFF6.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FCE
Deuteranopia (green-blind)
#0058C7
Tritanopia (blue-blind)
#396481
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #6142ca;
/* rgb */ color: rgb(97, 66, 202);
/* oklch */ color: oklch(49.5% 0.199 287.2);
Tailwind
colors: {
  custom: {
    50: '#9779db',
    500: '#6142ca',
    950: '#000000',
  },
}
SCSS
$custom: #6142ca;
$custom-light: #9779db;
$custom-dark: #000000;
JSON
{
  "hex": "#6142ca",
  "rgb": {
    "r": 97,
    "g": 66,
    "b": 202
  },
  "hsl": {
    "h": 253.676,
    "s": 56.198,
    "l": 52.549
  },
  "oklch": {
    "l": 0.4952,
    "c": 0.19912,
    "h": 287.2
  },
  "luminance": 0.10702
}

Semantic roles & 50–950 ramp

primary
#6142CA
secondary
#C4D196
accent
#DF48BD
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0F0915
muted
#7E7B83

Preview Lab

Preview with #6142CA

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

Preview Lab → · Contrast checker → · Palette generator →

#6142CA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva