#7F23A8#7F23A8

#7F23A8 is a mid, highly saturated purple. Relative luminance 0.085; OKLCH L 46.7% C 0.202 H 312.5°. Best body text is #FFFFFF at 7.75:1 contrast (WCAG AA passes).

Color values

HEX#7F23A8
RGBrgb(127, 35, 168)
HSLhsl(282, 66%, 40%)
HSVhsv(282, 79%, 66%)
CMYKcmyk(24.4%, 79.2%, 0%, 34.1%)
CIE-LABlab(35.09, 58.27, -52.51)
CIE-LCHlch(35.09, 78.44, 317.98°)
OKLaboklab(46.67% 0.1363 -0.1486)
OKLCHoklch(46.67% 0.202 312.5)
XYZxyz(16.4200, 8.5417, 37.8219)
Luminance0.0854 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F23A8 #4CA823
analogous
#3D23A8 #7F23A8 #A8238E
triadic
#7F23A8 #A87F23 #23A87F
tetradic
#7F23A8 #A83D23 #4CA823 #238EA8
square
#7F23A8 #A83D23 #4CA823 #238EA8
split-complementary
#7F23A8 #8EA823 #23A83D
monochromatic
#320E43 #591875 #7F23A8 #A334D5 #BA66DF

Accessibility & contrast

On white

7.75
#7F23A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#7F23A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F23A8
7.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F23A8#FFFFFF#000000##FFFFFF
##7F23A81.007.752.717.75
#FFFFFF7.751.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EAC
Deuteranopia (green-blind)
#0A54A5
Tritanopia (blue-blind)
#7A4366
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7f23a8;
/* rgb */ color: rgb(127, 35, 168);
/* oklch */ color: oklch(46.7% 0.202 312.5);
Tailwind
colors: {
  custom: {
    50: '#a969c3',
    500: '#7f23a8',
    950: '#000000',
  },
}
SCSS
$custom: #7f23a8;
$custom-light: #a969c3;
$custom-dark: #000000;
JSON
{
  "hex": "#7f23a8",
  "rgb": {
    "r": 127,
    "g": 35,
    "b": 168
  },
  "hsl": {
    "h": 281.504,
    "s": 65.517,
    "l": 39.804
  },
  "oklch": {
    "l": 0.46667,
    "c": 0.20167,
    "h": 312.5
  },
  "luminance": 0.08541
}

Semantic roles & 50–950 ramp

primary
#7F23A8
secondary
#80C562
accent
#E83F73
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7F23A8

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

Preview Lab → · Contrast checker → · Palette generator →

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