#7D42CA#7D42CA

#7D42CA is a mid, highly saturated violet. Relative luminance 0.125; OKLCH L 52.3% C 0.200 H 299.2°. Best body text is #FFFFFF at 5.99:1 contrast (WCAG AA passes).

Color values

HEX#7D42CA
RGBrgb(125, 66, 202)
HSLhsl(266, 56%, 53%)
HSVhsv(266, 67%, 79%)
CMYKcmyk(38.1%, 67.3%, 0%, 20.8%)
CIE-LABlab(42.03, 52.44, -61.30)
CIE-LCHlch(42.03, 80.67, 310.55°)
OKLaboklab(52.33% 0.0978 -0.1747)
OKLCHoklch(52.33% 0.2 299.2)
XYZxyz(21.0637, 12.5204, 57.1726)
Luminance0.1252 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D42CA #8FCA42
analogous
#424BCA #7D42CA #C142CA
triadic
#7D42CA #CA7D42 #42CA7D
tetradic
#7D42CA #CA424B #8FCA42 #42CAC1
square
#7D42CA #CA424B #8FCA42 #42CAC1
split-complementary
#7D42CA #CAC142 #4BCA42
monochromatic
#432072 #602DA2 #7D42CA #9E72D7 #BFA2E5

Accessibility & contrast

On white

5.99
#7D42CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.50
#7D42CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D42CA
5.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D42CA#FFFFFF#000000##FFFFFF
##7D42CA1.005.993.505.99
#FFFFFF5.991.0021.001.00
#0000003.5021.001.0021.00
##FFFFFF5.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063CE
Deuteranopia (green-blind)
#0062C7
Tritanopia (blue-blind)
#6B6281
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #7d42ca;
/* rgb */ color: rgb(125, 66, 202);
/* oklch */ color: oklch(52.3% 0.200 299.2);
Tailwind
colors: {
  custom: {
    50: '#a87adb',
    500: '#7d42ca',
    950: '#000000',
  },
}
SCSS
$custom: #7d42ca;
$custom-light: #a87adb;
$custom-dark: #000000;
JSON
{
  "hex": "#7d42ca",
  "rgb": {
    "r": 125,
    "g": 66,
    "b": 202
  },
  "hsl": {
    "h": 266.029,
    "s": 56.198,
    "l": 52.549
  },
  "oklch": {
    "l": 0.52328,
    "c": 0.20022,
    "h": 299.2
  },
  "luminance": 0.12521
}

Semantic roles & 50–950 ramp

primary
#7D42CA
secondary
#B8D196
accent
#DF489E
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7D42CA

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

Preview Lab → · Contrast checker → · Palette generator →

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