#7B23A8#7B23A8

#7B23A8 is a mid, highly saturated violet. Relative luminance 0.082; OKLCH L 46.1% C 0.200 H 310.8°. Best body text is #FFFFFF at 7.93:1 contrast (WCAG AA passes).

Color values

HEX#7B23A8
RGBrgb(123, 35, 168)
HSLhsl(280, 66%, 40%)
HSVhsv(280, 79%, 66%)
CMYKcmyk(26.8%, 79.2%, 0%, 34.1%)
CIE-LABlab(34.48, 57.55, -53.52)
CIE-LCHlch(34.48, 78.59, 317.07°)
OKLaboklab(46.12% 0.1309 -0.1518)
OKLCHoklch(46.12% 0.2 310.8)
XYZxyz(15.8359, 8.2406, 37.7946)
Luminance0.0824 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B23A8 #50A823
analogous
#3823A8 #7B23A8 #A82393
triadic
#7B23A8 #A87B23 #23A87B
tetradic
#7B23A8 #A83823 #50A823 #2393A8
square
#7B23A8 #A83823 #50A823 #2393A8
split-complementary
#7B23A8 #93A823 #23A838
monochromatic
#310E43 #561875 #7B23A8 #9E34D5 #B666DF

Accessibility & contrast

On white

7.93
#7B23A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#7B23A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B23A8
7.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B23A8#FFFFFF#000000##FFFFFF
##7B23A81.007.932.657.93
#FFFFFF7.931.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DAC
Deuteranopia (green-blind)
#0052A5
Tritanopia (blue-blind)
#754466
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7b23a8;
/* rgb */ color: rgb(123, 35, 168);
/* oklch */ color: oklch(46.1% 0.200 310.8);
Tailwind
colors: {
  custom: {
    50: '#a669c3',
    500: '#7b23a8',
    950: '#000000',
  },
}
SCSS
$custom: #7b23a8;
$custom-light: #a669c3;
$custom-dark: #000000;
JSON
{
  "hex": "#7b23a8",
  "rgb": {
    "r": 123,
    "g": 35,
    "b": 168
  },
  "hsl": {
    "h": 279.699,
    "s": 65.517,
    "l": 39.804
  },
  "oklch": {
    "l": 0.46117,
    "c": 0.20045,
    "h": 310.8
  },
  "luminance": 0.0824
}

Semantic roles & 50–950 ramp

primary
#7B23A8
secondary
#83C562
accent
#E83F79
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7B23A8

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

Preview Lab → · Contrast checker → · Palette generator →

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