#A751B2#A751B2

#A751B2 is a mid, vivid purple. Relative luminance 0.173; OKLCH L 57.8% C 0.167 H 323.0°. Best body text is #FFFFFF at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#A751B2
RGBrgb(167, 81, 178)
HSLhsl(293, 39%, 51%)
HSVhsv(293, 54%, 70%)
CMYKcmyk(6.2%, 54.5%, 0%, 30.2%)
CIE-LABlab(48.66, 49.65, -36.43)
CIE-LCHlch(48.66, 61.58, 323.73°)
OKLaboklab(57.82% 0.1337 -0.1008)
OKLCHoklch(57.82% 0.167 323)
XYZxyz(26.9139, 17.3160, 44.0355)
Luminance0.1731 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A751B2 #5CB251
analogous
#7651B2 #A751B2 #B2518C
triadic
#A751B2 #B2A751 #51B2A7
tetradic
#A751B2 #B27651 #5CB251 #518CB2
square
#A751B2 #B27651 #5CB251 #518CB2
split-complementary
#A751B2 #8CB251 #51B276
monochromatic
#592A5F #803D89 #A751B2 #BC7BC5 #D2A6D8

Accessibility & contrast

On white

4.71
#A751B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.46
#A751B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A751B2
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A751B2#FFFFFF#000000##FFFFFF
##A751B21.004.714.464.71
#FFFFFF4.711.0021.001.00
#0000004.4621.001.0021.00
##FFFFFF4.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#426DB5
Deuteranopia (green-blind)
#5E77AF
Tritanopia (blue-blind)
#A95E7A
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #a751b2;
/* rgb */ color: rgb(167, 81, 178);
/* oklch */ color: oklch(57.8% 0.167 323.0);
Tailwind
colors: {
  custom: {
    50: '#c386c9',
    500: '#a751b2',
    950: '#000000',
  },
}
SCSS
$custom: #a751b2;
$custom-light: #c386c9;
$custom-dark: #000000;
JSON
{
  "hex": "#a751b2",
  "rgb": {
    "r": 167,
    "g": 81,
    "b": 178
  },
  "hsl": {
    "h": 293.196,
    "s": 38.645,
    "l": 50.784
  },
  "oklch": {
    "l": 0.5782,
    "c": 0.1674,
    "h": 323
  },
  "luminance": 0.17315
}

Semantic roles & 50–950 ramp

primary
#A751B2
secondary
#9FC59A
accent
#CF5967
background
#FCF8FC
surface
#F8F0F8
border
#D1CBD1
text
#130B13
muted
#827C82

Preview Lab

Preview with #A751B2

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

Preview Lab → · Contrast checker → · Palette generator →

#A751B2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva