#7F23A6#7F23A6

#7F23A6 is a mid, vivid purple. Relative luminance 0.085; OKLCH L 46.5% C 0.200 H 313.1°. Best body text is #FFFFFF at 7.80:1 contrast (WCAG AA passes).

Color values

HEX#7F23A6
RGBrgb(127, 35, 166)
HSLhsl(282, 65%, 39%)
HSVhsv(282, 79%, 65%)
CMYKcmyk(23.5%, 78.9%, 0%, 34.9%)
CIE-LABlab(34.94, 57.86, -51.55)
CIE-LCHlch(34.94, 77.49, 318.30°)
OKLaboklab(46.52% 0.1367 -0.1458)
OKLCHoklch(46.52% 0.2 313.1)
XYZxyz(16.2351, 8.4678, 36.8482)
Luminance0.0847 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F23A6 #4AA623
analogous
#3D23A6 #7F23A6 #A6238C
triadic
#7F23A6 #A67F23 #23A67F
tetradic
#7F23A6 #A63D23 #4AA623 #238CA6
square
#7F23A6 #A63D23 #4AA623 #238CA6
split-complementary
#7F23A6 #8CA623 #23A63D
monochromatic
#320E41 #581873 #7F23A6 #A432D4 #BA65DF

Accessibility & contrast

On white

7.80
#7F23A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7F23A6
7.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F23A6#FFFFFF#000000##FFFFFF
##7F23A61.007.802.697.80
#FFFFFF7.801.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EAA
Deuteranopia (green-blind)
#1154A3
Tritanopia (blue-blind)
#7B4264
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7f23a6;
/* rgb */ color: rgb(127, 35, 166);
/* oklch */ color: oklch(46.5% 0.200 313.1);
Tailwind
colors: {
  custom: {
    50: '#a969c1',
    500: '#7f23a6',
    950: '#000000',
  },
}
SCSS
$custom: #7f23a6;
$custom-light: #a969c1;
$custom-dark: #000000;
JSON
{
  "hex": "#7f23a6",
  "rgb": {
    "r": 127,
    "g": 35,
    "b": 166
  },
  "hsl": {
    "h": 282.137,
    "s": 65.174,
    "l": 39.412
  },
  "oklch": {
    "l": 0.46516,
    "c": 0.19987,
    "h": 313.1
  },
  "luminance": 0.08467
}

Semantic roles & 50–950 ramp

primary
#7F23A6
secondary
#7EC461
accent
#E84072
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7F23A6

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

Preview Lab → · Contrast checker → · Palette generator →

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