#7B38CB#7B38CB

#7B38CB is a mid, highly saturated violet. Relative luminance 0.114; OKLCH L 51.0% C 0.213 H 299.5°. Best body text is #FFFFFF at 6.42:1 contrast (WCAG AA passes).

Color values

HEX#7B38CB
RGBrgb(123, 56, 203)
HSLhsl(267, 59%, 51%)
HSVhsv(267, 72%, 80%)
CMYKcmyk(39.4%, 72.4%, 0%, 20.4%)
CIE-LABlab(40.17, 57.07, -64.92)
CIE-LCHlch(40.17, 86.44, 311.32°)
OKLaboklab(50.97% 0.1047 -0.1854)
OKLCHoklch(50.97% 0.213 299.5)
XYZxyz(20.3593, 11.3509, 57.6066)
Luminance0.1135 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B38CB #88CB38
analogous
#383ECB #7B38CB #C538CB
triadic
#7B38CB #CB7B38 #38CB7B
tetradic
#7B38CB #CB383E #88CB38 #38CBC5
square
#7B38CB #CB383E #88CB38 #38CBC5
split-complementary
#7B38CB #CBC538 #3ECB38
monochromatic
#411C6C #5E299D #7B38CB #9B69D8 #BB99E4

Accessibility & contrast

On white

6.42
#7B38CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#7B38CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B38CB
6.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B38CB#FFFFFF#000000##FFFFFF
##7B38CB1.006.423.276.42
#FFFFFF6.421.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ECF
Deuteranopia (green-blind)
#005DC8
Tritanopia (blue-blind)
#685D7E
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #7b38cb;
/* rgb */ color: rgb(123, 56, 203);
/* oklch */ color: oklch(51.0% 0.213 299.5);
Tailwind
colors: {
  custom: {
    50: '#a875dc',
    500: '#7b38cb',
    950: '#000000',
  },
}
SCSS
$custom: #7b38cb;
$custom-light: #a875dc;
$custom-dark: #000000;
JSON
{
  "hex": "#7b38cb",
  "rgb": {
    "r": 123,
    "g": 56,
    "b": 203
  },
  "hsl": {
    "h": 267.347,
    "s": 58.566,
    "l": 50.784
  },
  "oklch": {
    "l": 0.5097,
    "c": 0.21293,
    "h": 299.5
  },
  "luminance": 0.11351
}

Semantic roles & 50–950 ramp

primary
#7B38CB
secondary
#B2D08F
accent
#E2469B
background
#FAF7FD
surface
#F4EDFB
border
#CEC8D4
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7B38CB

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

Preview Lab → · Contrast checker → · Palette generator →

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