#7D23A8#7D23A8

#7D23A8 is a mid, highly saturated purple. Relative luminance 0.084; OKLCH L 46.4% C 0.201 H 311.7°. Best body text is #FFFFFF at 7.84:1 contrast (WCAG AA passes).

Color values

HEX#7D23A8
RGBrgb(125, 35, 168)
HSLhsl(281, 66%, 40%)
HSVhsv(281, 79%, 66%)
CMYKcmyk(25.6%, 79.2%, 0%, 34.1%)
CIE-LABlab(34.78, 57.91, -53.02)
CIE-LCHlch(34.78, 78.51, 317.52°)
OKLaboklab(46.39% 0.1336 -0.1502)
OKLCHoklch(46.39% 0.201 311.7)
XYZxyz(16.1250, 8.3896, 37.8081)
Luminance0.0839 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D23A8 #4EA823
analogous
#3B23A8 #7D23A8 #A82390
triadic
#7D23A8 #A87D23 #23A87D
tetradic
#7D23A8 #A83B23 #4EA823 #2390A8
square
#7D23A8 #A83B23 #4EA823 #2390A8
split-complementary
#7D23A8 #90A823 #23A83B
monochromatic
#320E43 #571875 #7D23A8 #A134D5 #B866DF

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7D23A8#FFFFFF#000000##FFFFFF
##7D23A81.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)
#004EAC
Deuteranopia (green-blind)
#0253A5
Tritanopia (blue-blind)
#784466
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7d23a8;
/* rgb */ color: rgb(125, 35, 168);
/* oklch */ color: oklch(46.4% 0.201 311.7);
Tailwind
colors: {
  custom: {
    50: '#a769c3',
    500: '#7d23a8',
    950: '#000000',
  },
}
SCSS
$custom: #7d23a8;
$custom-light: #a769c3;
$custom-dark: #000000;
JSON
{
  "hex": "#7d23a8",
  "rgb": {
    "r": 125,
    "g": 35,
    "b": 168
  },
  "hsl": {
    "h": 280.602,
    "s": 65.517,
    "l": 39.804
  },
  "oklch": {
    "l": 0.46391,
    "c": 0.20105,
    "h": 311.7
  },
  "luminance": 0.08389
}

Semantic roles & 50–950 ramp

primary
#7D23A8
secondary
#82C562
accent
#E83F76
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7D23A8

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

Preview Lab → · Contrast checker → · Palette generator →

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