#7F23AC#7F23AC

#7F23AC is a mid, highly saturated purple. Relative luminance 0.087; OKLCH L 47.0% C 0.205 H 311.3°. Best body text is #FFFFFF at 7.67:1 contrast (WCAG AA passes).

Color values

HEX#7F23AC
RGBrgb(127, 35, 172)
HSLhsl(280, 66%, 41%)
HSVhsv(280, 80%, 67%)
CMYKcmyk(26.2%, 79.7%, 0%, 32.5%)
CIE-LABlab(35.39, 59.10, -54.42)
CIE-LCHlch(35.39, 80.34, 317.36°)
OKLaboklab(46.97% 0.1354 -0.1543)
OKLCHoklch(46.97% 0.205 311.3)
XYZxyz(16.7984, 8.6931, 39.8147)
Luminance0.0869 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F23AC #50AC23
analogous
#3A23AC #7F23AC #AC2394
triadic
#7F23AC #AC7F23 #23AC7F
tetradic
#7F23AC #AC3A23 #50AC23 #2394AC
square
#7F23AC #AC3A23 #50AC23 #2394AC
split-complementary
#7F23AC #94AC23 #23AC3A
monochromatic
#340E46 #591979 #7F23AC #A236D6 #B969E0

Accessibility & contrast

On white

7.67
#7F23AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#7F23AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F23AC
7.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F23AC#FFFFFF#000000##FFFFFF
##7F23AC1.007.672.747.67
#FFFFFF7.671.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB0
Deuteranopia (green-blind)
#0055A9
Tritanopia (blue-blind)
#794568
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7f23ac;
/* rgb */ color: rgb(127, 35, 172);
/* oklch */ color: oklch(47.0% 0.205 311.3);
Tailwind
colors: {
  custom: {
    50: '#a96ac6',
    500: '#7f23ac',
    950: '#000000',
  },
}
SCSS
$custom: #7f23ac;
$custom-light: #a96ac6;
$custom-dark: #000000;
JSON
{
  "hex": "#7f23ac",
  "rgb": {
    "r": 127,
    "g": 35,
    "b": 172
  },
  "hsl": {
    "h": 280.292,
    "s": 66.184,
    "l": 40.588
  },
  "oklch": {
    "l": 0.46972,
    "c": 0.20528,
    "h": 311.3
  },
  "luminance": 0.08693
}

Semantic roles & 50–950 ramp

primary
#7F23AC
secondary
#85C664
accent
#E93F77
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7F23AC

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

Preview Lab → · Contrast checker → · Palette generator →

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