#7F42CA#7F42CA

#7F42CA is a mid, highly saturated violet. Relative luminance 0.127; OKLCH L 52.5% C 0.201 H 300.1°. Best body text is #FFFFFF at 5.94:1 contrast (WCAG AA passes).

Color values

HEX#7F42CA
RGBrgb(127, 66, 202)
HSLhsl(267, 56%, 53%)
HSVhsv(267, 67%, 79%)
CMYKcmyk(37.1%, 67.3%, 0%, 20.8%)
CIE-LABlab(42.27, 52.84, -60.91)
CIE-LCHlch(42.27, 80.63, 310.94°)
OKLaboklab(52.55% 0.1005 -0.1735)
OKLCHoklch(52.55% 0.201 300.1)
XYZxyz(21.3587, 12.6725, 57.1864)
Luminance0.1267 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F42CA #8DCA42
analogous
#4249CA #7F42CA #C342CA
triadic
#7F42CA #CA7F42 #42CA7F
tetradic
#7F42CA #CA4249 #8DCA42 #42CAC3
square
#7F42CA #CA4249 #8DCA42 #42CAC3
split-complementary
#7F42CA #CAC342 #49CA42
monochromatic
#452072 #612DA2 #7F42CA #9F72D7 #C0A2E5

Accessibility & contrast

On white

5.94
#7F42CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#7F42CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F42CA
5.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F42CA#FFFFFF#000000##FFFFFF
##7F42CA1.005.943.535.94
#FFFFFF5.941.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063CE
Deuteranopia (green-blind)
#0063C7
Tritanopia (blue-blind)
#6E6281
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #7f42ca;
/* rgb */ color: rgb(127, 66, 202);
/* oklch */ color: oklch(52.5% 0.201 300.1);
Tailwind
colors: {
  custom: {
    50: '#aa7bdb',
    500: '#7f42ca',
    950: '#000000',
  },
}
SCSS
$custom: #7f42ca;
$custom-light: #aa7bdb;
$custom-dark: #000000;
JSON
{
  "hex": "#7f42ca",
  "rgb": {
    "r": 127,
    "g": 66,
    "b": 202
  },
  "hsl": {
    "h": 266.912,
    "s": 56.198,
    "l": 52.549
  },
  "oklch": {
    "l": 0.52548,
    "c": 0.20052,
    "h": 300.1
  },
  "luminance": 0.12673
}

Semantic roles & 50–950 ramp

primary
#7F42CA
secondary
#B7D196
accent
#DF489C
background
#FAF7FD
surface
#F5EEFB
border
#CFC9D4
text
#100A15
muted
#7F7C83

Preview Lab

Preview with #7F42CA

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

Preview Lab → · Contrast checker → · Palette generator →

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