#7E23B1#7E23B1

#7E23B1 is a mid, highly saturated violet. Relative luminance 0.088; OKLCH L 47.2% C 0.210 H 309.4°. Best body text is #FFFFFF at 7.60:1 contrast (WCAG AA passes).

Color values

HEX#7E23B1
RGBrgb(126, 35, 177)
HSLhsl(278, 67%, 42%)
HSVhsv(278, 80%, 69%)
CMYKcmyk(28.8%, 80.2%, 0%, 30.6%)
CIE-LABlab(35.62, 59.98, -57.03)
CIE-LCHlch(35.62, 82.76, 316.44°)
OKLaboklab(47.23% 0.1329 -0.162)
OKLCHoklch(47.23% 0.21 309.4)
XYZxyz(17.1394, 8.8123, 42.3845)
Luminance0.0881 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E23B1 #56B123
analogous
#3723B1 #7E23B1 #B1239D
triadic
#7E23B1 #B17E23 #23B17E
tetradic
#7E23B1 #B13723 #56B123 #239DB1
square
#7E23B1 #B13723 #56B123 #239DB1
split-complementary
#7E23B1 #9DB123 #23B137
monochromatic
#350F4B #5A197E #7E23B1 #9F39D8 #B86CE2

Accessibility & contrast

On white

7.60
#7E23B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#7E23B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E23B1
7.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E23B1#FFFFFF#000000##FFFFFF
##7E23B11.007.602.767.60
#FFFFFF7.601.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.601.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7e23b1;
/* rgb */ color: rgb(126, 35, 177);
/* oklch */ color: oklch(47.2% 0.210 309.4);
Tailwind
colors: {
  custom: {
    50: '#a96ac9',
    500: '#7e23b1',
    950: '#000000',
  },
}
SCSS
$custom: #7e23b1;
$custom-light: #a96ac9;
$custom-dark: #000000;
JSON
{
  "hex": "#7e23b1",
  "rgb": {
    "r": 126,
    "g": 35,
    "b": 177
  },
  "hsl": {
    "h": 278.451,
    "s": 66.981,
    "l": 41.569
  },
  "oklch": {
    "l": 0.47225,
    "c": 0.20954,
    "h": 309.4
  },
  "luminance": 0.08812
}

Semantic roles & 50–950 ramp

primary
#7E23B1
secondary
#8AC868
accent
#EA3E7C
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7E23B1

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

Preview Lab → · Contrast checker → · Palette generator →

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