#7F23A3#7F23A3

#7F23A3 is a mid, vivid purple. Relative luminance 0.084; OKLCH L 46.3% C 0.197 H 314.1°. Best body text is #FFFFFF at 7.86:1 contrast (WCAG AA passes).

Color values

HEX#7F23A3
RGBrgb(127, 35, 163)
HSLhsl(283, 65%, 39%)
HSVhsv(283, 79%, 64%)
CMYKcmyk(22.1%, 78.5%, 0%, 36.1%)
CIE-LABlab(34.72, 57.25, -50.10)
CIE-LCHlch(34.72, 76.07, 318.81°)
OKLaboklab(46.29% 0.1372 -0.1416)
OKLCHoklch(46.29% 0.197 314.1)
XYZxyz(15.9632, 8.3590, 35.4158)
Luminance0.0836 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F23A3 #47A323
analogous
#3F23A3 #7F23A3 #A32387
triadic
#7F23A3 #A37F23 #23A37F
tetradic
#7F23A3 #A33F23 #47A323 #2387A3
square
#7F23A3 #A33F23 #47A323 #2387A3
split-complementary
#7F23A3 #87A323 #23A33F
monochromatic
#300D3E #581871 #7F23A3 #A531D3 #BB63DD

Accessibility & contrast

On white

7.86
#7F23A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#7F23A3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F23A3
7.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F23A3#FFFFFF#000000##FFFFFF
##7F23A31.007.862.677.86
#FFFFFF7.861.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA6
Deuteranopia (green-blind)
#1854A0
Tritanopia (blue-blind)
#7B4163
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7f23a3;
/* rgb */ color: rgb(127, 35, 163);
/* oklch */ color: oklch(46.3% 0.197 314.1);
Tailwind
colors: {
  custom: {
    50: '#a869bf',
    500: '#7f23a3',
    950: '#000000',
  },
}
SCSS
$custom: #7f23a3;
$custom-light: #a869bf;
$custom-dark: #000000;
JSON
{
  "hex": "#7f23a3",
  "rgb": {
    "r": 127,
    "g": 35,
    "b": 163
  },
  "hsl": {
    "h": 283.125,
    "s": 64.646,
    "l": 38.824
  },
  "oklch": {
    "l": 0.46293,
    "c": 0.19717,
    "h": 314.1
  },
  "luminance": 0.08358
}

Semantic roles & 50–950 ramp

primary
#7F23A3
secondary
#7BC35F
accent
#E8406F
background
#FAF6FB
surface
#F4EBF7
border
#CEC6D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7F23A3

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

Preview Lab → · Contrast checker → · Palette generator →

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