#7B38AC#7B38AC

#7B38AC is a mid, vivid violet. Relative luminance 0.100; OKLCH L 48.6% C 0.180 H 307.5°. Best body text is #FFFFFF at 6.99:1 contrast (WCAG AA passes).

Color values

HEX#7B38AC
RGBrgb(123, 56, 172)
HSLhsl(275, 51%, 45%)
HSVhsv(275, 67%, 67%)
CMYKcmyk(28.5%, 67.4%, 0%, 32.5%)
CIE-LABlab(37.87, 49.64, -50.42)
CIE-LCHlch(37.87, 70.76, 314.56°)
OKLaboklab(48.62% 0.1095 -0.1428)
OKLCHoklch(48.62% 0.18 307.5)
XYZxyz(17.0274, 10.0181, 40.0584)
Luminance0.1002 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B38AC #69AC38
analogous
#4138AC #7B38AC #AC38A3
triadic
#7B38AC #AC7B38 #38AC7B
tetradic
#7B38AC #AC4138 #69AC38 #38A3AC
square
#7B38AC #AC4138 #69AC38 #38A3AC
split-complementary
#7B38AC #A3AC38 #38AC41
monochromatic
#391A50 #5A297E #7B38AC #9958C9 #B687D8

Accessibility & contrast

On white

6.99
#7B38AC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.00
#7B38AC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B38AC
6.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B38AC#FFFFFF#000000##FFFFFF
##7B38AC1.006.993.006.99
#FFFFFF6.991.0021.001.00
#0000003.0021.001.0021.00
##FFFFFF6.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057AF
Deuteranopia (green-blind)
#1E5AA9
Tritanopia (blue-blind)
#73516D
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #7b38ac;
/* rgb */ color: rgb(123, 56, 172);
/* oklch */ color: oklch(48.6% 0.180 307.5);
Tailwind
colors: {
  custom: {
    50: '#a573c5',
    500: '#7b38ac',
    950: '#000000',
  },
}
SCSS
$custom: #7b38ac;
$custom-light: #a573c5;
$custom-dark: #000000;
JSON
{
  "hex": "#7b38ac",
  "rgb": {
    "r": 123,
    "g": 56,
    "b": 172
  },
  "hsl": {
    "h": 274.655,
    "s": 50.877,
    "l": 44.706
  },
  "oklch": {
    "l": 0.48618,
    "c": 0.17994,
    "h": 307.5
  },
  "luminance": 0.10018
}

Semantic roles & 50–950 ramp

primary
#7B38AC
secondary
#9BC27E
accent
#DA4D89
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7B38AC

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

Preview Lab → · Contrast checker → · Palette generator →

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