#7B38C2#7B38C2

#7B38C2 is a mid, highly saturated violet. Relative luminance 0.109; OKLCH L 50.3% C 0.203 H 301.6°. Best body text is #FFFFFF at 6.59:1 contrast (WCAG AA passes).

Color values

HEX#7B38C2
RGBrgb(123, 56, 194)
HSLhsl(269, 55%, 49%)
HSVhsv(269, 71%, 76%)
CMYKcmyk(36.6%, 71.1%, 0%, 23.9%)
CIE-LABlab(39.47, 54.88, -60.82)
CIE-LCHlch(39.47, 81.92, 312.06°)
OKLaboklab(50.26% 0.1064 -0.1733)
OKLCHoklch(50.26% 0.203 301.6)
XYZxyz(19.3178, 10.9342, 52.1213)
Luminance0.1093 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B38C2 #7FC238
analogous
#383AC2 #7B38C2 #C038C2
triadic
#7B38C2 #C27B38 #38C27B
tetradic
#7B38C2 #C2383A #7FC238 #38C2C0
square
#7B38C2 #C2383A #7FC238 #38C2C0
split-complementary
#7B38C2 #C2C038 #3AC238
monochromatic
#3F1D63 #5D2A93 #7B38C2 #9A65D2 #B994E0

Accessibility & contrast

On white

6.59
#7B38C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.19
#7B38C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B38C2
6.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B38C2#FFFFFF#000000##FFFFFF
##7B38C21.006.593.196.59
#FFFFFF6.591.0021.001.00
#0000003.1921.001.0021.00
##FFFFFF6.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CC6
Deuteranopia (green-blind)
#005CBF
Tritanopia (blue-blind)
#6C5979
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #7b38c2;
/* rgb */ color: rgb(123, 56, 194);
/* oklch */ color: oklch(50.3% 0.203 301.6);
Tailwind
colors: {
  custom: {
    50: '#a774d5',
    500: '#7b38c2',
    950: '#000000',
  },
}
SCSS
$custom: #7b38c2;
$custom-light: #a774d5;
$custom-dark: #000000;
JSON
{
  "hex": "#7b38c2",
  "rgb": {
    "r": 123,
    "g": 56,
    "b": 194
  },
  "hsl": {
    "h": 269.13,
    "s": 55.2,
    "l": 49.02
  },
  "oklch": {
    "l": 0.50259,
    "c": 0.2034,
    "h": 301.6
  },
  "luminance": 0.10934
}

Semantic roles & 50–950 ramp

primary
#7B38C2
secondary
#ACCB8A
accent
#DF4996
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#100914
muted
#7F7B83

Preview Lab

Preview with #7B38C2

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

Preview Lab → · Contrast checker → · Palette generator →

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