#7B38AA#7B38AA

#7B38AA is a mid, vivid violet. Relative luminance 0.099; OKLCH L 48.5% C 0.178 H 308.1°. Best body text is #FFFFFF at 7.03:1 contrast (WCAG AA passes).

Color values

HEX#7B38AA
RGBrgb(123, 56, 170)
HSLhsl(275, 50%, 44%)
HSVhsv(275, 67%, 67%)
CMYKcmyk(27.6%, 67.1%, 0%, 33.3%)
CIE-LABlab(37.74, 49.18, -49.45)
CIE-LCHlch(37.74, 69.74, 314.84°)
OKLaboklab(48.48% 0.1097 -0.1399)
OKLCHoklch(48.48% 0.178 308.1)
XYZxyz(16.8368, 9.9418, 39.0544)
Luminance0.0994 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B38AA #67AA38
analogous
#4238AA #7B38AA #AA38A0
triadic
#7B38AA #AA7B38 #38AA7B
tetradic
#7B38AA #AA4238 #67AA38 #38A0AA
square
#7B38AA #AA4238 #67AA38 #38A0AA
split-complementary
#7B38AA #A0AA38 #38AA42
monochromatic
#381A4E #5A297C #7B38AA #9957C8 #B585D7

Accessibility & contrast

On white

7.03
#7B38AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#7B38AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B38AA
7.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B38AA#FFFFFF#000000##FFFFFF
##7B38AA1.007.032.997.03
#FFFFFF7.031.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056AD
Deuteranopia (green-blind)
#215AA7
Tritanopia (blue-blind)
#74506C
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #7b38aa;
/* rgb */ color: rgb(123, 56, 170);
/* oklch */ color: oklch(48.5% 0.178 308.1);
Tailwind
colors: {
  custom: {
    50: '#a573c4',
    500: '#7b38aa',
    950: '#000000',
  },
}
SCSS
$custom: #7b38aa;
$custom-light: #a573c4;
$custom-dark: #000000;
JSON
{
  "hex": "#7b38aa",
  "rgb": {
    "r": 123,
    "g": 56,
    "b": 170
  },
  "hsl": {
    "h": 275.263,
    "s": 50.442,
    "l": 44.314
  },
  "oklch": {
    "l": 0.48476,
    "c": 0.1778,
    "h": 308.1
  },
  "luminance": 0.09942
}

Semantic roles & 50–950 ramp

primary
#7B38AA
secondary
#99C17D
accent
#DA4E88
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7B38AA

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

Preview Lab → · Contrast checker → · Palette generator →

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