#7D23B1#7D23B1

#7D23B1 is a mid, highly saturated violet. Relative luminance 0.087; OKLCH L 47.1% C 0.209 H 309.0°. Best body text is #FFFFFF at 7.64:1 contrast (WCAG AA passes).

Color values

HEX#7D23B1
RGBrgb(125, 35, 177)
HSLhsl(278, 67%, 42%)
HSVhsv(278, 80%, 69%)
CMYKcmyk(29.4%, 80.2%, 0%, 30.6%)
CIE-LABlab(35.47, 59.81, -57.28)
CIE-LCHlch(35.47, 82.81, 316.24°)
OKLaboklab(47.09% 0.1316 -0.1627)
OKLCHoklch(47.09% 0.209 309)
XYZxyz(16.9927, 8.7367, 42.3776)
Luminance0.0874 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D23B1 #57B123
analogous
#3623B1 #7D23B1 #B1239E
triadic
#7D23B1 #B17D23 #23B17D
tetradic
#7D23B1 #B13623 #57B123 #239EB1
square
#7D23B1 #B13623 #57B123 #239EB1
split-complementary
#7D23B1 #9EB123 #23B136
monochromatic
#350F4B #59197E #7D23B1 #9E39D8 #B76CE2

Accessibility & contrast

On white

7.64
#7D23B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#7D23B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D23B1
7.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D23B1#FFFFFF#000000##FFFFFF
##7D23B11.007.642.757.64
#FFFFFF7.641.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B5
Deuteranopia (green-blind)
#0054AE
Tritanopia (blue-blind)
#75486B
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7d23b1;
/* rgb */ color: rgb(125, 35, 177);
/* oklch */ color: oklch(47.1% 0.209 309.0);
Tailwind
colors: {
  custom: {
    50: '#a86ac9',
    500: '#7d23b1',
    950: '#000000',
  },
}
SCSS
$custom: #7d23b1;
$custom-light: #a86ac9;
$custom-dark: #000000;
JSON
{
  "hex": "#7d23b1",
  "rgb": {
    "r": 125,
    "g": 35,
    "b": 177
  },
  "hsl": {
    "h": 278.028,
    "s": 66.981,
    "l": 41.569
  },
  "oklch": {
    "l": 0.47091,
    "c": 0.20927,
    "h": 309
  },
  "luminance": 0.08736
}

Semantic roles & 50–950 ramp

primary
#7D23B1
secondary
#8BC868
accent
#EA3E7D
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7D23B1

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

Preview Lab → · Contrast checker → · Palette generator →

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