#7F23D4#7F23D4

#7F23D4 is a mid, highly saturated violet. Relative luminance 0.105; OKLCH L 50.3% C 0.242 H 300.9°. Best body text is #FFFFFF at 6.79:1 contrast (WCAG AA passes).

Color values

HEX#7F23D4
RGBrgb(127, 35, 212)
HSLhsl(271, 72%, 48%)
HSVhsv(271, 83%, 83%)
CMYKcmyk(40.1%, 83.5%, 0%, 16.9%)
CIE-LABlab(38.67, 67.75, -72.56)
CIE-LCHlch(38.67, 99.27, 313.04°)
OKLaboklab(50.27% 0.1241 -0.2075)
OKLCHoklch(50.27% 0.242 300.9)
XYZxyz(21.2341, 10.4674, 63.1763)
Luminance0.1047 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F23D4 #78D423
analogous
#2623D4 #7F23D4 #D423D0
triadic
#7F23D4 #D47F23 #23D47F
tetradic
#7F23D4 #D42623 #78D423 #23D0D4
square
#7F23D4 #D42623 #78D423 #23D0D4
split-complementary
#7F23D4 #D0D423 #23D426
monochromatic
#40126B #601A9F #7F23D4 #9D52E2 #BB86EB

Accessibility & contrast

On white

6.79
#7F23D4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.09
#7F23D4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F23D4
6.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F23D4#FFFFFF#000000##FFFFFF
##7F23D41.006.793.096.79
#FFFFFF6.791.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AD9
Deuteranopia (green-blind)
#005AD1
Tritanopia (blue-blind)
#6B577F
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #7f23d4;
/* rgb */ color: rgb(127, 35, 212);
/* oklch */ color: oklch(50.3% 0.242 300.9);
Tailwind
colors: {
  custom: {
    50: '#ac6ce2',
    500: '#7f23d4',
    950: '#000000',
  },
}
SCSS
$custom: #7f23d4;
$custom-light: #ac6ce2;
$custom-dark: #000000;
JSON
{
  "hex": "#7f23d4",
  "rgb": {
    "r": 127,
    "g": 35,
    "b": 212
  },
  "hsl": {
    "h": 271.186,
    "s": 71.66,
    "l": 48.431
  },
  "oklch": {
    "l": 0.50266,
    "c": 0.2418,
    "h": 300.9
  },
  "luminance": 0.10468
}

Semantic roles & 50–950 ramp

primary
#7F23D4
secondary
#A8D47E
accent
#EE3990
background
#FBF6FE
surface
#F6ECFC
border
#D0C7D5
text
#110816
muted
#807A84

Preview Lab

Preview with #7F23D4

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

Preview Lab → · Contrast checker → · Palette generator →

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