#7F42CC#7F42CC

#7F42CC is a mid, highly saturated violet. Relative luminance 0.128; OKLCH L 52.7% C 0.203 H 299.6°. Best body text is #FFFFFF at 5.91:1 contrast (WCAG AA passes).

Color values

HEX#7F42CC
RGBrgb(127, 66, 204)
HSLhsl(267, 58%, 53%)
HSVhsv(267, 68%, 80%)
CMYKcmyk(37.7%, 67.6%, 0%, 20%)
CIE-LABlab(42.41, 53.34, -61.83)
CIE-LCHlch(42.41, 81.65, 310.78°)
OKLaboklab(52.7% 0.1003 -0.1762)
OKLCHoklch(52.7% 0.203 299.6)
XYZxyz(21.5970, 12.7679, 58.4416)
Luminance0.1277 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F42CC #8FCC42
analogous
#424ACC #7F42CC #C442CC
triadic
#7F42CC #CC7F42 #42CC7F
tetradic
#7F42CC #CC424A #8FCC42 #42CCC4
square
#7F42CC #CC424A #8FCC42 #42CCC4
split-complementary
#7F42CC #CCC442 #4ACC42
monochromatic
#451F74 #612CA4 #7F42CC #A072D9 #C0A2E6

Accessibility & contrast

On white

5.91
#7F42CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.55
#7F42CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F42CC
5.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F42CC#FFFFFF#000000##FFFFFF
##7F42CC1.005.913.555.91
#FFFFFF5.911.0021.001.00
#0000003.5521.001.0021.00
##FFFFFF5.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064D0
Deuteranopia (green-blind)
#0063C9
Tritanopia (blue-blind)
#6D6282
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #7f42cc;
/* rgb */ color: rgb(127, 66, 204);
/* oklch */ color: oklch(52.7% 0.203 299.6);
Tailwind
colors: {
  custom: {
    50: '#aa7bdc',
    500: '#7f42cc',
    950: '#000000',
  },
}
SCSS
$custom: #7f42cc;
$custom-light: #aa7bdc;
$custom-dark: #000000;
JSON
{
  "hex": "#7f42cc",
  "rgb": {
    "r": 127,
    "g": 66,
    "b": 204
  },
  "hsl": {
    "h": 266.522,
    "s": 57.5,
    "l": 52.941
  },
  "oklch": {
    "l": 0.52698,
    "c": 0.20274,
    "h": 299.6
  },
  "luminance": 0.12768
}

Semantic roles & 50–950 ramp

primary
#7F42CC
secondary
#B8D397
accent
#E1479D
background
#FAF7FD
surface
#F5EEFB
border
#CFC9D4
text
#110A15
muted
#807C83

Preview Lab

Preview with #7F42CC

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

Preview Lab → · Contrast checker → · Palette generator →

#7F42CC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva