#7A23BB#7A23BB

#7A23BB is a mid, highly saturated violet. Relative luminance 0.089; OKLCH L 47.5% C 0.218 H 304.9°. Best body text is #FFFFFF at 7.54:1 contrast (WCAG AA passes).

Color values

HEX#7A23BB
RGBrgb(122, 35, 187)
HSLhsl(274, 68%, 44%)
HSVhsv(274, 81%, 73%)
CMYKcmyk(34.8%, 81.3%, 0%, 26.7%)
CIE-LABlab(35.84, 61.49, -62.62)
CIE-LCHlch(35.84, 87.76, 314.48°)
OKLaboklab(47.51% 0.1247 -0.1785)
OKLCHoklch(47.51% 0.218 304.9)
XYZxyz(17.5947, 8.9276, 47.8003)
Luminance0.0893 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A23BB #64BB23
analogous
#2E23BB #7A23BB #BB23B0
triadic
#7A23BB #BB7A23 #23BB7A
tetradic
#7A23BB #BB2E23 #64BB23 #23B0BB
square
#7A23BB #BB2E23 #64BB23 #23B0BB
split-complementary
#7A23BB #B0BB23 #23BB2E
monochromatic
#371054 #581987 #7A23BB #9940DB #B474E5

Accessibility & contrast

On white

7.54
#7A23BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7A23BB
7.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A23BB#FFFFFF#000000##FFFFFF
##7A23BB1.007.542.797.54
#FFFFFF7.541.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052BF
Deuteranopia (green-blind)
#0054B8
Tritanopia (blue-blind)
#6D4D70
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7a23bb;
/* rgb */ color: rgb(122, 35, 187);
/* oklch */ color: oklch(47.5% 0.218 304.9);
Tailwind
colors: {
  custom: {
    50: '#a76ad0',
    500: '#7a23bb',
    950: '#000000',
  },
}
SCSS
$custom: #7a23bb;
$custom-light: #a76ad0;
$custom-dark: #000000;
JSON
{
  "hex": "#7a23bb",
  "rgb": {
    "r": 122,
    "g": 35,
    "b": 187
  },
  "hsl": {
    "h": 274.342,
    "s": 68.468,
    "l": 43.529
  },
  "oklch": {
    "l": 0.47511,
    "c": 0.21778,
    "h": 304.9
  },
  "luminance": 0.08927
}

Semantic roles & 50–950 ramp

primary
#7A23BB
secondary
#96CC6E
accent
#EB3C87
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100714
muted
#7F7A82

Preview Lab

Preview with #7A23BB

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

Preview Lab → · Contrast checker → · Palette generator →

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