#7F23A9#7F23A9

#7F23A9 is a mid, highly saturated purple. Relative luminance 0.086; OKLCH L 46.7% C 0.203 H 312.2°. Best body text is #FFFFFF at 7.73:1 contrast (WCAG AA passes).

Color values

HEX#7F23A9
RGBrgb(127, 35, 169)
HSLhsl(281, 66%, 40%)
HSVhsv(281, 79%, 66%)
CMYKcmyk(24.9%, 79.3%, 0%, 33.7%)
CIE-LABlab(35.16, 58.48, -52.99)
CIE-LCHlch(35.16, 78.92, 317.82°)
OKLaboklab(46.74% 0.1361 -0.1501)
OKLCHoklch(46.74% 0.203 312.2)
XYZxyz(16.5135, 8.5791, 38.3145)
Luminance0.0858 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F23A9 #4DA923
analogous
#3C23A9 #7F23A9 #A92390
triadic
#7F23A9 #A97F23 #23A97F
tetradic
#7F23A9 #A93C23 #4DA923 #2390A9
square
#7F23A9 #A93C23 #4DA923 #2390A9
split-complementary
#7F23A9 #90A923 #23A93C
monochromatic
#330E44 #591976 #7F23A9 #A334D5 #BA67DF

Accessibility & contrast

On white

7.73
#7F23A9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#7F23A9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F23A9
7.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F23A9#FFFFFF#000000##FFFFFF
##7F23A91.007.732.727.73
#FFFFFF7.731.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EAD
Deuteranopia (green-blind)
#0754A6
Tritanopia (blue-blind)
#7A4466
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7f23a9;
/* rgb */ color: rgb(127, 35, 169);
/* oklch */ color: oklch(46.7% 0.203 312.2);
Tailwind
colors: {
  custom: {
    50: '#a969c3',
    500: '#7f23a9',
    950: '#000000',
  },
}
SCSS
$custom: #7f23a9;
$custom-light: #a969c3;
$custom-dark: #000000;
JSON
{
  "hex": "#7f23a9",
  "rgb": {
    "r": 127,
    "g": 35,
    "b": 169
  },
  "hsl": {
    "h": 281.194,
    "s": 65.686,
    "l": 40
  },
  "oklch": {
    "l": 0.46743,
    "c": 0.20257,
    "h": 312.2
  },
  "luminance": 0.08579
}

Semantic roles & 50–950 ramp

primary
#7F23A9
secondary
#82C563
accent
#E93F74
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7F23A9

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

Preview Lab → · Contrast checker → · Palette generator →

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