#7D23AB#7D23AB

#7D23AB is a mid, highly saturated violet. Relative luminance 0.085; OKLCH L 46.6% C 0.204 H 310.7°. Best body text is #FFFFFF at 7.78:1 contrast (WCAG AA passes).

Color values

HEX#7D23AB
RGBrgb(125, 35, 171)
HSLhsl(280, 66%, 40%)
HSVhsv(280, 80%, 67%)
CMYKcmyk(26.9%, 79.5%, 0%, 32.9%)
CIE-LABlab(35.01, 58.54, -54.45)
CIE-LCHlch(35.01, 79.95, 317.07°)
OKLaboklab(46.62% 0.133 -0.1544)
OKLCHoklch(46.62% 0.204 310.7)
XYZxyz(16.4077, 8.5027, 39.2970)
Luminance0.0850 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D23AB #51AB23
analogous
#3923AB #7D23AB #AB2395
triadic
#7D23AB #AB7D23 #23AB7D
tetradic
#7D23AB #AB3923 #51AB23 #2395AB
square
#7D23AB #AB3923 #51AB23 #2395AB
split-complementary
#7D23AB #95AB23 #23AB39
monochromatic
#330E45 #581978 #7D23AB #A035D6 #B868E0

Accessibility & contrast

On white

7.78
#7D23AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#7D23AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D23AB
7.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D23AB#FFFFFF#000000##FFFFFF
##7D23AB1.007.782.707.78
#FFFFFF7.781.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EAF
Deuteranopia (green-blind)
#0054A8
Tritanopia (blue-blind)
#774567
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7d23ab;
/* rgb */ color: rgb(125, 35, 171);
/* oklch */ color: oklch(46.6% 0.204 310.7);
Tailwind
colors: {
  custom: {
    50: '#a869c5',
    500: '#7d23ab',
    950: '#000000',
  },
}
SCSS
$custom: #7d23ab;
$custom-light: #a869c5;
$custom-dark: #000000;
JSON
{
  "hex": "#7d23ab",
  "rgb": {
    "r": 125,
    "g": 35,
    "b": 171
  },
  "hsl": {
    "h": 279.706,
    "s": 66.019,
    "l": 40.392
  },
  "oklch": {
    "l": 0.46621,
    "c": 0.20379,
    "h": 310.7
  },
  "luminance": 0.08502
}

Semantic roles & 50–950 ramp

primary
#7D23AB
secondary
#85C664
accent
#E93F78
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7D23AB

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

Preview Lab → · Contrast checker → · Palette generator →

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