#6142CD#6142CD

#6142CD is a mid, highly saturated violet. Relative luminance 0.108; OKLCH L 49.8% C 0.203 H 286.8°. Best body text is #FFFFFF at 6.63:1 contrast (WCAG AA passes).

Color values

HEX#6142CD
RGBrgb(97, 66, 205)
HSLhsl(253, 58%, 53%)
HSVhsv(253, 68%, 80%)
CMYKcmyk(52.7%, 67.8%, 0%, 19.6%)
CIE-LABlab(39.32, 48.13, -67.58)
CIE-LCHlch(39.32, 82.97, 305.46°)
OKLaboklab(49.77% 0.0585 -0.1941)
OKLCHoklch(49.77% 0.203 286.8)
XYZxyz(17.8942, 10.8447, 58.8961)
Luminance0.1085 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6142CD #AECD42
analogous
#4268CD #6142CD #A642CD
triadic
#6142CD #CD6142 #42CD61
tetradic
#6142CD #CD4268 #AECD42 #42CDA6
square
#6142CD #CD4268 #AECD42 #42CDA6
split-complementary
#6142CD #CDA642 #68CD42
monochromatic
#321F76 #472CA6 #6142CD #8972DA #B2A3E7

Accessibility & contrast

On white

6.63
#6142CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.17
#6142CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6142CD
6.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6142CD#FFFFFF#000000##FFFFFF
##6142CD1.006.633.176.63
#FFFFFF6.631.0021.001.00
#0000003.1721.001.0021.00
##FFFFFF6.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060D1
Deuteranopia (green-blind)
#0059CA
Tritanopia (blue-blind)
#366582
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #6142cd;
/* rgb */ color: rgb(97, 66, 205);
/* oklch */ color: oklch(49.8% 0.203 286.8);
Tailwind
colors: {
  custom: {
    50: '#9879dd',
    500: '#6142cd',
    950: '#000000',
  },
}
SCSS
$custom: #6142cd;
$custom-light: #9879dd;
$custom-dark: #000000;
JSON
{
  "hex": "#6142cd",
  "rgb": {
    "r": 97,
    "g": 66,
    "b": 205
  },
  "hsl": {
    "h": 253.381,
    "s": 58.159,
    "l": 53.137
  },
  "oklch": {
    "l": 0.49772,
    "c": 0.20274,
    "h": 286.8
  },
  "luminance": 0.10846
}

Semantic roles & 50–950 ramp

primary
#6142CD
secondary
#C6D397
accent
#E146BF
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0F0915
muted
#7E7B83

Preview Lab

Preview with #6142CD

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

Preview Lab → · Contrast checker → · Palette generator →

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