#7F23AD#7F23AD

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

Color values

HEX#7F23AD
RGBrgb(127, 35, 173)
HSLhsl(280, 66%, 41%)
HSVhsv(280, 80%, 68%)
CMYKcmyk(26.6%, 79.8%, 0%, 32.2%)
CIE-LABlab(35.46, 59.31, -54.90)
CIE-LCHlch(35.46, 80.82, 317.21°)
OKLaboklab(47.05% 0.1352 -0.1557)
OKLCHoklch(47.05% 0.206 311)
XYZxyz(16.8948, 8.7316, 40.3224)
Luminance0.0873 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F23AD #51AD23
analogous
#3A23AD #7F23AD #AD2396
triadic
#7F23AD #AD7F23 #23AD7F
tetradic
#7F23AD #AD3A23 #51AD23 #2396AD
square
#7F23AD #AD3A23 #51AD23 #2396AD
split-complementary
#7F23AD #96AD23 #23AD3A
monochromatic
#340E47 #5A197A #7F23AD #A137D6 #B96AE1

Accessibility & contrast

On white

7.65
#7F23AD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#7F23AD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F23AD
7.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F23AD#FFFFFF#000000##FFFFFF
##7F23AD1.007.652.757.65
#FFFFFF7.651.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB1
Deuteranopia (green-blind)
#0055AA
Tritanopia (blue-blind)
#794668
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7f23ad;
/* rgb */ color: rgb(127, 35, 173);
/* oklch */ color: oklch(47.0% 0.206 311.0);
Tailwind
colors: {
  custom: {
    50: '#a96ac6',
    500: '#7f23ad',
    950: '#000000',
  },
}
SCSS
$custom: #7f23ad;
$custom-light: #a96ac6;
$custom-dark: #000000;
JSON
{
  "hex": "#7f23ad",
  "rgb": {
    "r": 127,
    "g": 35,
    "b": 173
  },
  "hsl": {
    "h": 280,
    "s": 66.346,
    "l": 40.784
  },
  "oklch": {
    "l": 0.47048,
    "c": 0.20619,
    "h": 311
  },
  "luminance": 0.08731
}

Semantic roles & 50–950 ramp

primary
#7F23AD
secondary
#86C765
accent
#E93F77
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7F23AD

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

Preview Lab → · Contrast checker → · Palette generator →

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