#7B38BE#7B38BE

#7B38BE is a mid, vivid violet. Relative luminance 0.108; OKLCH L 50.0% C 0.199 H 302.5°. Best body text is #FFFFFF at 6.66:1 contrast (WCAG AA passes).

Color values

HEX#7B38BE
RGBrgb(123, 56, 190)
HSLhsl(270, 54%, 48%)
HSVhsv(270, 71%, 75%)
CMYKcmyk(35.3%, 70.5%, 0%, 25.5%)
CIE-LABlab(39.17, 53.92, -58.96)
CIE-LCHlch(39.17, 79.90, 312.44°)
OKLaboklab(49.95% 0.1071 -0.1679)
OKLCHoklch(49.95% 0.199 302.5)
XYZxyz(18.8746, 10.7570, 49.7871)
Luminance0.1076 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B38BE #7BBE38
analogous
#3838BE #7B38BE #BE38BE
triadic
#7B38BE #BE7B38 #38BE7B
tetradic
#7B38BE #BE3838 #7BBE38 #38BEBE
square
#7B38BE #BE3838 #7BBE38 #38BEBE
split-complementary
#7B38BE #BEBE38 #38BE38
monochromatic
#3E1C5F #5C2A8F #7B38BE #9A62D1 #B892DF

Accessibility & contrast

On white

6.66
#7B38BE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.15
#7B38BE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B38BE
6.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B38BE#FFFFFF#000000##FFFFFF
##7B38BE1.006.663.156.66
#FFFFFF6.661.0021.001.00
#0000003.1521.001.0021.00
##FFFFFF6.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BC2
Deuteranopia (green-blind)
#005CBB
Tritanopia (blue-blind)
#6D5877
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #7b38be;
/* rgb */ color: rgb(123, 56, 190);
/* oklch */ color: oklch(50.0% 0.199 302.5);
Tailwind
colors: {
  custom: {
    50: '#a774d2',
    500: '#7b38be',
    950: '#000000',
  },
}
SCSS
$custom: #7b38be;
$custom-light: #a774d2;
$custom-dark: #000000;
JSON
{
  "hex": "#7b38be",
  "rgb": {
    "r": 123,
    "g": 56,
    "b": 190
  },
  "hsl": {
    "h": 270,
    "s": 54.472,
    "l": 48.235
  },
  "oklch": {
    "l": 0.49951,
    "c": 0.19915,
    "h": 302.5
  },
  "luminance": 0.10757
}

Semantic roles & 50–950 ramp

primary
#7B38BE
secondary
#A9CA88
accent
#DE4A94
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#100914
muted
#7F7B83

Preview Lab

Preview with #7B38BE

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

Preview Lab → · Contrast checker → · Palette generator →

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