#7F23B0#7F23B0

#7F23B0 is a mid, highly saturated violet. Relative luminance 0.088; OKLCH L 47.3% C 0.209 H 310.1°. Best body text is #FFFFFF at 7.58:1 contrast (WCAG AA passes).

Color values

HEX#7F23B0
RGBrgb(127, 35, 176)
HSLhsl(279, 67%, 41%)
HSVhsv(279, 80%, 69%)
CMYKcmyk(27.8%, 80.1%, 0%, 31%)
CIE-LABlab(35.69, 59.94, -56.31)
CIE-LCHlch(35.69, 82.24, 316.79°)
OKLaboklab(47.28% 0.1345 -0.1598)
OKLCHoklch(47.28% 0.209 310.1)
XYZxyz(17.1883, 8.8491, 41.8685)
Luminance0.0885 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F23B0 #54B023
analogous
#3923B0 #7F23B0 #B0239B
triadic
#7F23B0 #B07F23 #23B07F
tetradic
#7F23B0 #B03923 #54B023 #239BB0
square
#7F23B0 #B03923 #54B023 #239BB0
split-complementary
#7F23B0 #9BB023 #23B039
monochromatic
#350F4A #5A197D #7F23B0 #A039D8 #B96CE2

Accessibility & contrast

On white

7.58
#7F23B0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#7F23B0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F23B0
7.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F23B0#FFFFFF#000000##FFFFFF
##7F23B01.007.582.777.58
#FFFFFF7.581.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B4
Deuteranopia (green-blind)
#0055AD
Tritanopia (blue-blind)
#78476A
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7f23b0;
/* rgb */ color: rgb(127, 35, 176);
/* oklch */ color: oklch(47.3% 0.209 310.1);
Tailwind
colors: {
  custom: {
    50: '#a96ac8',
    500: '#7f23b0',
    950: '#000000',
  },
}
SCSS
$custom: #7f23b0;
$custom-light: #a96ac8;
$custom-dark: #000000;
JSON
{
  "hex": "#7f23b0",
  "rgb": {
    "r": 127,
    "g": 35,
    "b": 176
  },
  "hsl": {
    "h": 279.149,
    "s": 66.825,
    "l": 41.373
  },
  "oklch": {
    "l": 0.47281,
    "c": 0.2089,
    "h": 310.1
  },
  "luminance": 0.08849
}

Semantic roles & 50–950 ramp

primary
#7F23B0
secondary
#89C867
accent
#EA3E7A
background
#FAF6FC
surface
#F5ECF8
border
#CFC7D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7F23B0

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

Preview Lab → · Contrast checker → · Palette generator →

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