#7D42B2#7D42B2

#7D42B2 is a mid, vivid violet. Relative luminance 0.115; OKLCH L 50.6% C 0.173 H 305.3°. Best body text is #FFFFFF at 6.37:1 contrast (WCAG AA passes).

Color values

HEX#7D42B2
RGBrgb(125, 66, 178)
HSLhsl(272, 46%, 48%)
HSVhsv(272, 63%, 70%)
CMYKcmyk(29.8%, 62.9%, 0%, 30.2%)
CIE-LABlab(40.36, 46.51, -49.96)
CIE-LCHlch(40.36, 68.26, 312.95°)
OKLaboklab(50.6% 0.1 -0.1414)
OKLCHoklch(50.6% 0.173 305.3)
XYZxyz(18.4398, 11.4709, 43.3535)
Luminance0.1147 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D42B2 #77B242
analogous
#4542B2 #7D42B2 #B242AF
triadic
#7D42B2 #B27D42 #42B27D
tetradic
#7D42B2 #B24542 #77B242 #42AFB2
square
#7D42B2 #B24542 #77B242 #42AFB2
split-complementary
#7D42B2 #AFB242 #42B245
monochromatic
#3E2159 #5E3185 #7D42B2 #9B6AC8 #B996D8

Accessibility & contrast

On white

6.37
#7D42B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.29
#7D42B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D42B2
6.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D42B2#FFFFFF#000000##FFFFFF
##7D42B21.006.373.296.37
#FFFFFF6.371.0021.001.00
#0000003.2921.001.0021.00
##FFFFFF6.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DB6
Deuteranopia (green-blind)
#275FAF
Tritanopia (blue-blind)
#745974
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #7d42b2;
/* rgb */ color: rgb(125, 66, 178);
/* oklch */ color: oklch(50.6% 0.173 305.3);
Tailwind
colors: {
  custom: {
    50: '#a67aca',
    500: '#7d42b2',
    950: '#000000',
  },
}
SCSS
$custom: #7d42b2;
$custom-light: #a67aca;
$custom-dark: #000000;
JSON
{
  "hex": "#7d42b2",
  "rgb": {
    "r": 125,
    "g": 66,
    "b": 178
  },
  "hsl": {
    "h": 271.607,
    "s": 45.902,
    "l": 47.843
  },
  "oklch": {
    "l": 0.50596,
    "c": 0.1732,
    "h": 305.3
  },
  "luminance": 0.11471
}

Semantic roles & 50–950 ramp

primary
#7D42B2
secondary
#A6C48C
accent
#D65290
background
#FAF7FC
surface
#F4EEF8
border
#CEC9D1
text
#100913
muted
#7F7B82

Preview Lab

Preview with #7D42B2

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

Preview Lab → · Contrast checker → · Palette generator →

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