#8142CB#8142CB

#8142CB is a mid, highly saturated violet. Relative luminance 0.129; OKLCH L 52.8% C 0.202 H 300.7°. Best body text is #FFFFFF at 5.87:1 contrast (WCAG AA passes).

Color values

HEX#8142CB
RGBrgb(129, 66, 203)
HSLhsl(268, 57%, 53%)
HSVhsv(268, 67%, 80%)
CMYKcmyk(36.5%, 67.5%, 0%, 20.4%)
CIE-LABlab(42.57, 53.48, -60.97)
CIE-LCHlch(42.57, 81.11, 311.26°)
OKLaboklab(52.85% 0.1031 -0.1736)
OKLCHoklch(52.85% 0.202 300.7)
XYZxyz(21.7783, 12.8752, 57.8261)
Luminance0.1288 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8142CB #8CCB42
analogous
#4248CB #8142CB #C542CB
triadic
#8142CB #CB8142 #42CB81
tetradic
#8142CB #CB4248 #8CCB42 #42CBC5
square
#8142CB #CB4248 #8CCB42 #42CBC5
split-complementary
#8142CB #CBC542 #48CB42
monochromatic
#462073 #632DA3 #8142CB #A172D8 #C1A2E5

Accessibility & contrast

On white

5.87
#8142CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.58
#8142CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8142CB
5.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8142CB#FFFFFF#000000##FFFFFF
##8142CB1.005.873.585.87
#FFFFFF5.871.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064CF
Deuteranopia (green-blind)
#0064C8
Tritanopia (blue-blind)
#716281
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #8142cb;
/* rgb */ color: rgb(129, 66, 203);
/* oklch */ color: oklch(52.8% 0.202 300.7);
Tailwind
colors: {
  custom: {
    50: '#ab7bdc',
    500: '#8142cb',
    950: '#000000',
  },
}
SCSS
$custom: #8142cb;
$custom-light: #ab7bdc;
$custom-dark: #000000;
JSON
{
  "hex": "#8142cb",
  "rgb": {
    "r": 129,
    "g": 66,
    "b": 203
  },
  "hsl": {
    "h": 267.591,
    "s": 56.846,
    "l": 52.745
  },
  "oklch": {
    "l": 0.52845,
    "c": 0.20195,
    "h": 300.7
  },
  "luminance": 0.12875
}

Semantic roles & 50–950 ramp

primary
#8142CB
secondary
#B7D297
accent
#E0489A
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110A15
muted
#807C83

Preview Lab

Preview with #8142CB

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

Preview Lab → · Contrast checker → · Palette generator →

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