#7F23B3#7F23B3

#7F23B3 is a mid, highly saturated violet. Relative luminance 0.090; OKLCH L 47.5% C 0.212 H 309.2°. Best body text is #FFFFFF at 7.52:1 contrast (WCAG AA passes).

Color values

HEX#7F23B3
RGBrgb(127, 35, 179)
HSLhsl(278, 67%, 42%)
HSVhsv(278, 80%, 70%)
CMYKcmyk(29.1%, 80.4%, 0%, 29.8%)
CIE-LABlab(35.92, 60.57, -57.72)
CIE-LCHlch(35.92, 83.67, 316.38°)
OKLaboklab(47.52% 0.1338 -0.164)
OKLCHoklch(47.52% 0.212 309.2)
XYZxyz(17.4885, 8.9691, 43.4490)
Luminance0.0897 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F23B3 #57B323
analogous
#3723B3 #7F23B3 #B3239F
triadic
#7F23B3 #B37F23 #23B37F
tetradic
#7F23B3 #B33723 #57B323 #239FB3
square
#7F23B3 #B33723 #57B323 #239FB3
split-complementary
#7F23B3 #9FB323 #23B337
monochromatic
#360F4D #5B1980 #7F23B3 #A03BD9 #B86EE3

Accessibility & contrast

On white

7.52
#7F23B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#7F23B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F23B3
7.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F23B3#FFFFFF#000000##FFFFFF
##7F23B31.007.522.797.52
#FFFFFF7.521.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B7
Deuteranopia (green-blind)
#0056B0
Tritanopia (blue-blind)
#77486C
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7f23b3;
/* rgb */ color: rgb(127, 35, 179);
/* oklch */ color: oklch(47.5% 0.212 309.2);
Tailwind
colors: {
  custom: {
    50: '#a96acb',
    500: '#7f23b3',
    950: '#000000',
  },
}
SCSS
$custom: #7f23b3;
$custom-light: #a96acb;
$custom-dark: #000000;
JSON
{
  "hex": "#7f23b3",
  "rgb": {
    "r": 127,
    "g": 35,
    "b": 179
  },
  "hsl": {
    "h": 278.333,
    "s": 67.29,
    "l": 41.961
  },
  "oklch": {
    "l": 0.47517,
    "c": 0.21164,
    "h": 309.2
  },
  "luminance": 0.08969
}

Semantic roles & 50–950 ramp

primary
#7F23B3
secondary
#8CC969
accent
#EA3E7C
background
#FAF6FC
surface
#F5ECF9
border
#CFC7D2
text
#110713
muted
#807A82

Preview Lab

Preview with #7F23B3

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

Preview Lab → · Contrast checker → · Palette generator →

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