#7A42BE#7A42BE

#7A42BE is a mid, vivid violet. Relative luminance 0.118; OKLCH L 51.1% C 0.186 H 300.7°. Best body text is #FFFFFF at 6.27:1 contrast (WCAG AA passes).

Color values

HEX#7A42BE
RGBrgb(122, 66, 190)
HSLhsl(267, 49%, 50%)
HSVhsv(267, 65%, 75%)
CMYKcmyk(35.8%, 65.3%, 0%, 25.5%)
CIE-LABlab(40.82, 48.81, -56.29)
CIE-LCHlch(40.82, 74.51, 310.92°)
OKLaboklab(51.11% 0.0951 -0.1601)
OKLCHoklch(51.11% 0.186 300.7)
XYZxyz(19.2663, 11.7516, 49.9585)
Luminance0.1175 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A42BE #86BE42
analogous
#4248BE #7A42BE #B842BE
triadic
#7A42BE #BE7A42 #42BE7A
tetradic
#7A42BE #BE4248 #86BE42 #42BEB8
square
#7A42BE #BE4248 #86BE42 #42BEB8
split-complementary
#7A42BE #BEB842 #48BE42
monochromatic
#402263 #5D3291 #7A42BE #9A70CE #BA9DDD

Accessibility & contrast

On white

6.27
#7A42BE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#7A42BE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A42BE
6.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A42BE#FFFFFF#000000##FFFFFF
##7A42BE1.006.273.356.27
#FFFFFF6.271.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060C2
Deuteranopia (green-blind)
#035FBB
Tritanopia (blue-blind)
#6B5E7A
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #7a42be;
/* rgb */ color: rgb(122, 66, 190);
/* oklch */ color: oklch(51.1% 0.186 300.7);
Tailwind
colors: {
  custom: {
    50: '#a57ad2',
    500: '#7a42be',
    950: '#000000',
  },
}
SCSS
$custom: #7a42be;
$custom-light: #a57ad2;
$custom-dark: #000000;
JSON
{
  "hex": "#7a42be",
  "rgb": {
    "r": 122,
    "g": 66,
    "b": 190
  },
  "hsl": {
    "h": 267.097,
    "s": 48.819,
    "l": 50.196
  },
  "oklch": {
    "l": 0.51106,
    "c": 0.18621,
    "h": 300.7
  },
  "luminance": 0.11752
}

Semantic roles & 50–950 ramp

primary
#7A42BE
secondary
#B1CA92
accent
#D84F9B
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100914
muted
#7F7B83

Preview Lab

Preview with #7A42BE

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

Preview Lab → · Contrast checker → · Palette generator →

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