#7F23A4#7F23A4

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

Color values

HEX#7F23A4
RGBrgb(127, 35, 164)
HSLhsl(283, 65%, 39%)
HSVhsv(283, 79%, 64%)
CMYKcmyk(22.6%, 78.7%, 0%, 35.7%)
CIE-LABlab(34.79, 57.45, -50.58)
CIE-LCHlch(34.79, 76.54, 318.64°)
OKLaboklab(46.37% 0.1371 -0.143)
OKLCHoklch(46.37% 0.198 313.8)
XYZxyz(16.0531, 8.3950, 35.8895)
Luminance0.0839 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F23A4 #48A423
analogous
#3F23A4 #7F23A4 #A42389
triadic
#7F23A4 #A47F23 #23A47F
tetradic
#7F23A4 #A43F23 #48A423 #2389A4
square
#7F23A4 #A43F23 #48A423 #2389A4
split-complementary
#7F23A4 #89A423 #23A43F
monochromatic
#310D3F #581872 #7F23A4 #A531D3 #BB64DE

Accessibility & contrast

On white

7.84
#7F23A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#7F23A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F23A4
7.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F23A4#FFFFFF#000000##FFFFFF
##7F23A41.007.842.687.84
#FFFFFF7.841.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA7
Deuteranopia (green-blind)
#1654A1
Tritanopia (blue-blind)
#7B4263
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7f23a4;
/* rgb */ color: rgb(127, 35, 164);
/* oklch */ color: oklch(46.4% 0.198 313.8);
Tailwind
colors: {
  custom: {
    50: '#a969c0',
    500: '#7f23a4',
    950: '#000000',
  },
}
SCSS
$custom: #7f23a4;
$custom-light: #a969c0;
$custom-dark: #000000;
JSON
{
  "hex": "#7f23a4",
  "rgb": {
    "r": 127,
    "g": 35,
    "b": 164
  },
  "hsl": {
    "h": 282.791,
    "s": 64.824,
    "l": 39.02
  },
  "oklch": {
    "l": 0.46367,
    "c": 0.19807,
    "h": 313.8
  },
  "luminance": 0.08394
}

Semantic roles & 50–950 ramp

primary
#7F23A4
secondary
#7CC360
accent
#E84070
background
#FAF6FB
surface
#F4EBF7
border
#CEC6D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7F23A4

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

Preview Lab → · Contrast checker → · Palette generator →

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