#7B38CA#7B38CA

#7B38CA is a mid, highly saturated violet. Relative luminance 0.113; OKLCH L 50.9% C 0.212 H 299.7°. Best body text is #FFFFFF at 6.44:1 contrast (WCAG AA passes).

Color values

HEX#7B38CA
RGBrgb(123, 56, 202)
HSLhsl(268, 58%, 51%)
HSVhsv(268, 72%, 79%)
CMYKcmyk(39.1%, 72.3%, 0%, 20.8%)
CIE-LABlab(40.09, 56.83, -64.47)
CIE-LCHlch(40.09, 85.94, 311.40°)
OKLaboklab(50.89% 0.1049 -0.1841)
OKLCHoklch(50.89% 0.212 299.7)
XYZxyz(20.2406, 11.3033, 56.9811)
Luminance0.1130 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B38CA #87CA38
analogous
#383ECA #7B38CA #C438CA
triadic
#7B38CA #CA7B38 #38CA7B
tetradic
#7B38CA #CA383E #87CA38 #38CAC4
square
#7B38CA #CA383E #87CA38 #38CAC4
split-complementary
#7B38CA #CAC438 #3ECA38
monochromatic
#411D6B #5E299B #7B38CA #9B68D7 #BB99E4

Accessibility & contrast

On white

6.44
#7B38CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.26
#7B38CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B38CA
6.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B38CA#FFFFFF#000000##FFFFFF
##7B38CA1.006.443.266.44
#FFFFFF6.441.0021.001.00
#0000003.2621.001.0021.00
##FFFFFF6.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ECE
Deuteranopia (green-blind)
#005DC7
Tritanopia (blue-blind)
#695D7E
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #7b38ca;
/* rgb */ color: rgb(123, 56, 202);
/* oklch */ color: oklch(50.9% 0.212 299.7);
Tailwind
colors: {
  custom: {
    50: '#a875db',
    500: '#7b38ca',
    950: '#000000',
  },
}
SCSS
$custom: #7b38ca;
$custom-light: #a875db;
$custom-dark: #000000;
JSON
{
  "hex": "#7b38ca",
  "rgb": {
    "r": 123,
    "g": 56,
    "b": 202
  },
  "hsl": {
    "h": 267.534,
    "s": 57.937,
    "l": 50.588
  },
  "oklch": {
    "l": 0.5089,
    "c": 0.21188,
    "h": 299.7
  },
  "luminance": 0.11304
}

Semantic roles & 50–950 ramp

primary
#7B38CA
secondary
#B2CF8E
accent
#E1479A
background
#FAF7FD
surface
#F4EDFB
border
#CEC8D4
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7B38CA

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

Preview Lab → · Contrast checker → · Palette generator →

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