#7F23B1#7F23B1

#7F23B1 is a mid, highly saturated violet. Relative luminance 0.089; OKLCH L 47.4% C 0.210 H 309.8°. Best body text is #FFFFFF at 7.56:1 contrast (WCAG AA passes).

Color values

HEX#7F23B1
RGBrgb(127, 35, 177)
HSLhsl(279, 67%, 42%)
HSVhsv(279, 80%, 69%)
CMYKcmyk(28.2%, 80.2%, 0%, 30.6%)
CIE-LABlab(35.77, 60.15, -56.78)
CIE-LCHlch(35.77, 82.72, 316.65°)
OKLaboklab(47.36% 0.1343 -0.1612)
OKLCHoklch(47.36% 0.21 309.8)
XYZxyz(17.2876, 8.8888, 42.3915)
Luminance0.0889 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F23B1 #55B123
analogous
#3823B1 #7F23B1 #B1239C
triadic
#7F23B1 #B17F23 #23B17F
tetradic
#7F23B1 #B13823 #55B123 #239CB1
square
#7F23B1 #B13823 #55B123 #239CB1
split-complementary
#7F23B1 #9CB123 #23B138
monochromatic
#360F4B #5A197E #7F23B1 #A039D8 #B96CE2

Accessibility & contrast

On white

7.56
#7F23B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#7F23B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F23B1
7.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F23B1#FFFFFF#000000##FFFFFF
##7F23B11.007.562.787.56
#FFFFFF7.561.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B5
Deuteranopia (green-blind)
#0055AE
Tritanopia (blue-blind)
#78476B
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7f23b1;
/* rgb */ color: rgb(127, 35, 177);
/* oklch */ color: oklch(47.4% 0.210 309.8);
Tailwind
colors: {
  custom: {
    50: '#a96ac9',
    500: '#7f23b1',
    950: '#000000',
  },
}
SCSS
$custom: #7f23b1;
$custom-light: #a96ac9;
$custom-dark: #000000;
JSON
{
  "hex": "#7f23b1",
  "rgb": {
    "r": 127,
    "g": 35,
    "b": 177
  },
  "hsl": {
    "h": 278.873,
    "s": 66.981,
    "l": 41.569
  },
  "oklch": {
    "l": 0.47359,
    "c": 0.20981,
    "h": 309.8
  },
  "luminance": 0.08888
}

Semantic roles & 50–950 ramp

primary
#7F23B1
secondary
#8AC868
accent
#EA3E7A
background
#FAF6FC
surface
#F5ECF8
border
#CFC7D1
text
#110713
muted
#807A82

Preview Lab

Preview with #7F23B1

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

Preview Lab → · Contrast checker → · Palette generator →

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