#7E23B3#7E23B3

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

Color values

HEX#7E23B3
RGBrgb(126, 35, 179)
HSLhsl(278, 67%, 42%)
HSVhsv(278, 80%, 70%)
CMYKcmyk(29.6%, 80.4%, 0%, 29.8%)
CIE-LABlab(35.78, 60.40, -57.97)
CIE-LCHlch(35.78, 83.72, 316.18°)
OKLaboklab(47.38% 0.1325 -0.1647)
OKLCHoklch(47.38% 0.211 308.8)
XYZxyz(17.3402, 8.8927, 43.4421)
Luminance0.0889 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E23B3 #58B323
analogous
#3623B3 #7E23B3 #B323A0
triadic
#7E23B3 #B37E23 #23B37E
tetradic
#7E23B3 #B33623 #58B323 #23A0B3
square
#7E23B3 #B33623 #58B323 #23A0B3
split-complementary
#7E23B3 #A0B323 #23B336
monochromatic
#360F4D #5A1980 #7E23B3 #9E3BD9 #B86EE3

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7E23B3#FFFFFF#000000##FFFFFF
##7E23B31.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)
#0051B7
Deuteranopia (green-blind)
#0055B0
Tritanopia (blue-blind)
#76496C
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7e23b3;
/* rgb */ color: rgb(126, 35, 179);
/* oklch */ color: oklch(47.4% 0.211 308.8);
Tailwind
colors: {
  custom: {
    50: '#a96acb',
    500: '#7e23b3',
    950: '#000000',
  },
}
SCSS
$custom: #7e23b3;
$custom-light: #a96acb;
$custom-dark: #000000;
JSON
{
  "hex": "#7e23b3",
  "rgb": {
    "r": 126,
    "g": 35,
    "b": 179
  },
  "hsl": {
    "h": 277.917,
    "s": 67.29,
    "l": 41.961
  },
  "oklch": {
    "l": 0.47383,
    "c": 0.21137,
    "h": 308.8
  },
  "luminance": 0.08892
}

Semantic roles & 50–950 ramp

primary
#7E23B3
secondary
#8CC969
accent
#EA3E7D
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7E23B3

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

Preview Lab → · Contrast checker → · Palette generator →

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