#7F23AB#7F23AB

#7F23AB is a mid, highly saturated purple. Relative luminance 0.087; OKLCH L 46.9% C 0.204 H 311.6°. Best body text is #FFFFFF at 7.69:1 contrast (WCAG AA passes).

Color values

HEX#7F23AB
RGBrgb(127, 35, 171)
HSLhsl(281, 66%, 40%)
HSVhsv(281, 80%, 67%)
CMYKcmyk(25.7%, 79.5%, 0%, 32.9%)
CIE-LABlab(35.31, 58.89, -53.95)
CIE-LCHlch(35.31, 79.87, 317.51°)
OKLaboklab(46.9% 0.1357 -0.1529)
OKLCHoklch(46.9% 0.204 311.6)
XYZxyz(16.7027, 8.6548, 39.3109)
Luminance0.0865 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F23AB #4FAB23
analogous
#3B23AB #7F23AB #AB2393
triadic
#7F23AB #AB7F23 #23AB7F
tetradic
#7F23AB #AB3B23 #4FAB23 #2393AB
square
#7F23AB #AB3B23 #4FAB23 #2393AB
split-complementary
#7F23AB #93AB23 #23AB3B
monochromatic
#340E45 #591978 #7F23AB #A235D6 #B968E0

Accessibility & contrast

On white

7.69
#7F23AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#7F23AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F23AB
7.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F23AB#FFFFFF#000000##FFFFFF
##7F23AB1.007.692.737.69
#FFFFFF7.691.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FAF
Deuteranopia (green-blind)
#0055A8
Tritanopia (blue-blind)
#794567
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7f23ab;
/* rgb */ color: rgb(127, 35, 171);
/* oklch */ color: oklch(46.9% 0.204 311.6);
Tailwind
colors: {
  custom: {
    50: '#a96ac5',
    500: '#7f23ab',
    950: '#000000',
  },
}
SCSS
$custom: #7f23ab;
$custom-light: #a96ac5;
$custom-dark: #000000;
JSON
{
  "hex": "#7f23ab",
  "rgb": {
    "r": 127,
    "g": 35,
    "b": 171
  },
  "hsl": {
    "h": 280.588,
    "s": 66.019,
    "l": 40.392
  },
  "oklch": {
    "l": 0.46895,
    "c": 0.20438,
    "h": 311.6
  },
  "luminance": 0.08654
}

Semantic roles & 50–950 ramp

primary
#7F23AB
secondary
#84C664
accent
#E93F76
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7F23AB

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

Preview Lab → · Contrast checker → · Palette generator →

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