#8A42B7#8A42B7

#8A42B7 is a mid, vivid violet. Relative luminance 0.127; OKLCH L 52.5% C 0.182 H 309.9°. Best body text is #FFFFFF at 5.93:1 contrast (WCAG AA passes).

Color values

HEX#8A42B7
RGBrgb(138, 66, 183)
HSLhsl(277, 47%, 49%)
HSVhsv(277, 64%, 72%)
CMYKcmyk(24.6%, 63.9%, 0%, 28.2%)
CIE-LABlab(42.34, 50.70, -49.64)
CIE-LCHlch(42.34, 70.96, 315.60°)
OKLaboklab(52.49% 0.117 -0.1401)
OKLCHoklch(52.49% 0.182 309.9)
XYZxyz(20.9750, 12.7190, 46.1406)
Luminance0.1272 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A42B7 #6FB742
analogous
#5042B7 #8A42B7 #B742AA
triadic
#8A42B7 #B78A42 #42B78A
tetradic
#8A42B7 #B75042 #6FB742 #42AAB7
square
#8A42B7 #B75042 #6FB742 #42AAB7
split-complementary
#8A42B7 #AAB742 #42B750
monochromatic
#46225D #68328A #8A42B7 #A66CCA #C199DA

Accessibility & contrast

On white

5.93
#8A42B7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.54
#8A42B7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A42B7
5.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A42B7#FFFFFF#000000##FFFFFF
##8A42B71.005.933.545.93
#FFFFFF5.931.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061BB
Deuteranopia (green-blind)
#3265B4
Tritanopia (blue-blind)
#845976
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #8a42b7;
/* rgb */ color: rgb(138, 66, 183);
/* oklch */ color: oklch(52.5% 0.182 309.9);
Tailwind
colors: {
  custom: {
    50: '#b07bcd',
    500: '#8a42b7',
    950: '#000000',
  },
}
SCSS
$custom: #8a42b7;
$custom-light: #b07bcd;
$custom-dark: #000000;
JSON
{
  "hex": "#8a42b7",
  "rgb": {
    "r": 138,
    "g": 66,
    "b": 183
  },
  "hsl": {
    "h": 276.923,
    "s": 46.988,
    "l": 48.824
  },
  "oklch": {
    "l": 0.52487,
    "c": 0.18249,
    "h": 309.9
  },
  "luminance": 0.12719
}

Semantic roles & 50–950 ramp

primary
#8A42B7
secondary
#A4C68F
accent
#D75185
background
#FBF7FC
surface
#F6EEF9
border
#D0C9D2
text
#110A13
muted
#807C82

Preview Lab

Preview with #8A42B7

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

Preview Lab → · Contrast checker → · Palette generator →

#8A42B7 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva