#7F23A7#7F23A7

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

Color values

HEX#7F23A7
RGBrgb(127, 35, 167)
HSLhsl(282, 65%, 40%)
HSVhsv(282, 79%, 65%)
CMYKcmyk(24%, 79%, 0%, 34.5%)
CIE-LABlab(35.01, 58.07, -52.03)
CIE-LCHlch(35.01, 77.97, 318.14°)
OKLaboklab(46.59% 0.1365 -0.1472)
OKLCHoklch(46.59% 0.201 312.8)
XYZxyz(16.3272, 8.5046, 37.3332)
Luminance0.0850 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F23A7 #4BA723
analogous
#3D23A7 #7F23A7 #A7238D
triadic
#7F23A7 #A77F23 #23A77F
tetradic
#7F23A7 #A73D23 #4BA723 #238DA7
square
#7F23A7 #A73D23 #4BA723 #238DA7
split-complementary
#7F23A7 #8DA723 #23A73D
monochromatic
#320E42 #591874 #7F23A7 #A333D4 #BA66DF

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7F23A7#FFFFFF#000000##FFFFFF
##7F23A71.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)
#004EAB
Deuteranopia (green-blind)
#0E54A4
Tritanopia (blue-blind)
#7A4365
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7f23a7;
/* rgb */ color: rgb(127, 35, 167);
/* oklch */ color: oklch(46.6% 0.201 312.8);
Tailwind
colors: {
  custom: {
    50: '#a969c2',
    500: '#7f23a7',
    950: '#000000',
  },
}
SCSS
$custom: #7f23a7;
$custom-light: #a969c2;
$custom-dark: #000000;
JSON
{
  "hex": "#7f23a7",
  "rgb": {
    "r": 127,
    "g": 35,
    "b": 167
  },
  "hsl": {
    "h": 281.818,
    "s": 65.347,
    "l": 39.608
  },
  "oklch": {
    "l": 0.46591,
    "c": 0.20076,
    "h": 312.8
  },
  "luminance": 0.08504
}

Semantic roles & 50–950 ramp

primary
#7F23A7
secondary
#7FC461
accent
#E83F73
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7F23A7

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

Preview Lab → · Contrast checker → · Palette generator →

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