#7F23A5#7F23A5

#7F23A5 is a mid, vivid purple. Relative luminance 0.084; OKLCH L 46.4% C 0.199 H 313.5°. Best body text is #FFFFFF at 7.82:1 contrast (WCAG AA passes).

Color values

HEX#7F23A5
RGBrgb(127, 35, 165)
HSLhsl(282, 65%, 39%)
HSVhsv(282, 79%, 65%)
CMYKcmyk(23%, 78.8%, 0%, 35.3%)
CIE-LABlab(34.87, 57.66, -51.07)
CIE-LCHlch(34.87, 77.02, 318.47°)
OKLaboklab(46.44% 0.1369 -0.1444)
OKLCHoklch(46.44% 0.199 313.5)
XYZxyz(16.1438, 8.4312, 36.3670)
Luminance0.0843 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F23A5 #49A523
analogous
#3E23A5 #7F23A5 #A5238A
triadic
#7F23A5 #A57F23 #23A57F
tetradic
#7F23A5 #A53E23 #49A523 #238AA5
square
#7F23A5 #A53E23 #49A523 #238AA5
split-complementary
#7F23A5 #8AA523 #23A53E
monochromatic
#310E40 #581873 #7F23A5 #A432D3 #BB64DE

Accessibility & contrast

On white

7.82
#7F23A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#7F23A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F23A5
7.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F23A5#FFFFFF#000000##FFFFFF
##7F23A51.007.822.697.82
#FFFFFF7.821.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA9
Deuteranopia (green-blind)
#1354A2
Tritanopia (blue-blind)
#7B4264
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7f23a5;
/* rgb */ color: rgb(127, 35, 165);
/* oklch */ color: oklch(46.4% 0.199 313.5);
Tailwind
colors: {
  custom: {
    50: '#a969c0',
    500: '#7f23a5',
    950: '#000000',
  },
}
SCSS
$custom: #7f23a5;
$custom-light: #a969c0;
$custom-dark: #000000;
JSON
{
  "hex": "#7f23a5",
  "rgb": {
    "r": 127,
    "g": 35,
    "b": 165
  },
  "hsl": {
    "h": 282.462,
    "s": 65,
    "l": 39.216
  },
  "oklch": {
    "l": 0.46442,
    "c": 0.19897,
    "h": 313.5
  },
  "luminance": 0.08431
}

Semantic roles & 50–950 ramp

primary
#7F23A5
secondary
#7DC460
accent
#E84071
background
#FAF6FB
surface
#F4EBF7
border
#CEC6D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7F23A5

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

Preview Lab → · Contrast checker → · Palette generator →

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