#6142CB#6142CB

#6142CB is a mid, highly saturated violet. Relative luminance 0.107; OKLCH L 49.6% C 0.200 H 287.1°. Best body text is #FFFFFF at 6.67:1 contrast (WCAG AA passes).

Color values

HEX#6142CB
RGBrgb(97, 66, 203)
HSLhsl(254, 57%, 53%)
HSVhsv(254, 67%, 80%)
CMYKcmyk(52.2%, 67.5%, 0%, 20.4%)
CIE-LABlab(39.15, 47.55, -66.69)
CIE-LCHlch(39.15, 81.91, 305.49°)
OKLaboklab(49.6% 0.0588 -0.1915)
OKLCHoklch(49.6% 0.2 287.1)
XYZxyz(17.6543, 10.7487, 57.6328)
Luminance0.1075 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6142CB #ACCB42
analogous
#4267CB #6142CB #A642CB
triadic
#6142CB #CB6142 #42CB61
tetradic
#6142CB #CB4267 #ACCB42 #42CBA6
square
#6142CB #CB4267 #ACCB42 #42CBA6
split-complementary
#6142CB #CBA642 #67CB42
monochromatic
#322073 #482DA3 #6142CB #8972D8 #B1A2E5

Accessibility & contrast

On white

6.67
#6142CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.15
#6142CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6142CB
6.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6142CB#FFFFFF#000000##FFFFFF
##6142CB1.006.673.156.67
#FFFFFF6.671.0021.001.00
#0000003.1521.001.0021.00
##FFFFFF6.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060CF
Deuteranopia (green-blind)
#0058C8
Tritanopia (blue-blind)
#386581
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #6142cb;
/* rgb */ color: rgb(97, 66, 203);
/* oklch */ color: oklch(49.6% 0.200 287.1);
Tailwind
colors: {
  custom: {
    50: '#9779dc',
    500: '#6142cb',
    950: '#000000',
  },
}
SCSS
$custom: #6142cb;
$custom-light: #9779dc;
$custom-dark: #000000;
JSON
{
  "hex": "#6142cb",
  "rgb": {
    "r": 97,
    "g": 66,
    "b": 203
  },
  "hsl": {
    "h": 253.577,
    "s": 56.846,
    "l": 52.745
  },
  "oklch": {
    "l": 0.49604,
    "c": 0.20033,
    "h": 287.1
  },
  "luminance": 0.1075
}

Semantic roles & 50–950 ramp

primary
#6142CB
secondary
#C5D297
accent
#E048BE
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0F0915
muted
#7E7B83

Preview Lab

Preview with #6142CB

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

Preview Lab → · Contrast checker → · Palette generator →

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