#7B40B2#7B40B2

#7B40B2 is a mid, vivid violet. Relative luminance 0.111; OKLCH L 50.1% C 0.176 H 304.6°. Best body text is #FFFFFF at 6.52:1 contrast (WCAG AA passes).

Color values

HEX#7B40B2
RGBrgb(123, 64, 178)
HSLhsl(271, 47%, 47%)
HSVhsv(271, 64%, 70%)
CMYKcmyk(30.9%, 64%, 0%, 30.2%)
CIE-LABlab(39.74, 47.08, -50.98)
CIE-LCHlch(39.74, 69.40, 312.72°)
OKLaboklab(50.09% 0.0997 -0.1445)
OKLCHoklch(50.09% 0.176 304.6)
XYZxyz(18.0359, 11.0922, 43.3017)
Luminance0.1109 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B40B2 #77B240
analogous
#4240B2 #7B40B2 #B240B0
triadic
#7B40B2 #B27B40 #40B27B
tetradic
#7B40B2 #B24240 #77B240 #40B0B2
square
#7B40B2 #B24240 #77B240 #40B0B2
split-complementary
#7B40B2 #B0B240 #40B242
monochromatic
#3D2058 #5C3085 #7B40B2 #9967C8 #B794D8

Accessibility & contrast

On white

6.52
#7B40B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.22
#7B40B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B40B2
6.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B40B2#FFFFFF#000000##FFFFFF
##7B40B21.006.523.226.52
#FFFFFF6.521.0021.001.00
#0000003.2221.001.0021.00
##FFFFFF6.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CB6
Deuteranopia (green-blind)
#215EAF
Tritanopia (blue-blind)
#715873
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #7b40b2;
/* rgb */ color: rgb(123, 64, 178);
/* oklch */ color: oklch(50.1% 0.176 304.6);
Tailwind
colors: {
  custom: {
    50: '#a578ca',
    500: '#7b40b2',
    950: '#000000',
  },
}
SCSS
$custom: #7b40b2;
$custom-light: #a578ca;
$custom-dark: #000000;
JSON
{
  "hex": "#7b40b2",
  "rgb": {
    "r": 123,
    "g": 64,
    "b": 178
  },
  "hsl": {
    "h": 271.053,
    "s": 47.107,
    "l": 47.451
  },
  "oklch": {
    "l": 0.50088,
    "c": 0.17554,
    "h": 304.6
  },
  "luminance": 0.11092
}

Semantic roles & 50–950 ramp

primary
#7B40B2
secondary
#A6C48A
accent
#D75192
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100913
muted
#7F7B82

Preview Lab

Preview with #7B40B2

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

Preview Lab → · Contrast checker → · Palette generator →

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