#7142CB#7142CB

#7142CB is a mid, highly saturated violet. Relative luminance 0.117; OKLCH L 51.1% C 0.200 H 293.9°. Best body text is #FFFFFF at 6.28:1 contrast (WCAG AA passes).

Color values

HEX#7142CB
RGBrgb(113, 66, 203)
HSLhsl(261, 57%, 53%)
HSVhsv(261, 67%, 80%)
CMYKcmyk(44.3%, 67.5%, 0%, 20.4%)
CIE-LABlab(40.77, 50.39, -63.99)
CIE-LCHlch(40.77, 81.46, 308.22°)
OKLaboklab(51.14% 0.081 -0.1831)
OKLCHoklch(51.14% 0.2 293.9)
XYZxyz(19.5348, 11.7184, 57.7210)
Luminance0.1172 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7142CB #9CCB42
analogous
#4257CB #7142CB #B542CB
triadic
#7142CB #CB7142 #42CB71
tetradic
#7142CB #CB4257 #9CCB42 #42CBB5
square
#7142CB #CB4257 #9CCB42 #42CBB5
split-complementary
#7142CB #CBB542 #57CB42
monochromatic
#3C2073 #552DA3 #7142CB #9572D8 #B9A2E5

Accessibility & contrast

On white

6.28
#7142CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#7142CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7142CB
6.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7142CB#FFFFFF#000000##FFFFFF
##7142CB1.006.283.346.28
#FFFFFF6.281.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062CF
Deuteranopia (green-blind)
#005EC8
Tritanopia (blue-blind)
#576381
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #7142cb;
/* rgb */ color: rgb(113, 66, 203);
/* oklch */ color: oklch(51.1% 0.200 293.9);
Tailwind
colors: {
  custom: {
    50: '#a17adc',
    500: '#7142cb',
    950: '#000000',
  },
}
SCSS
$custom: #7142cb;
$custom-light: #a17adc;
$custom-dark: #000000;
JSON
{
  "hex": "#7142cb",
  "rgb": {
    "r": 113,
    "g": 66,
    "b": 203
  },
  "hsl": {
    "h": 260.584,
    "s": 56.846,
    "l": 52.745
  },
  "oklch": {
    "l": 0.51139,
    "c": 0.20019,
    "h": 293.9
  },
  "luminance": 0.11719
}

Semantic roles & 50–950 ramp

primary
#7142CB
secondary
#BED297
accent
#E048AC
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7142CB

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

Preview Lab → · Contrast checker → · Palette generator →

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