#7B2DAF#7B2DAF

#7B2DAF is a mid, vivid violet. Relative luminance 0.092; OKLCH L 47.6% C 0.197 H 307.8°. Best body text is #FFFFFF at 7.40:1 contrast (WCAG AA passes).

Color values

HEX#7B2DAF
RGBrgb(123, 45, 175)
HSLhsl(276, 59%, 43%)
HSVhsv(276, 74%, 69%)
CMYKcmyk(29.7%, 74.3%, 0%, 31.4%)
CIE-LABlab(36.33, 55.26, -54.70)
CIE-LCHlch(36.33, 77.76, 315.29°)
OKLaboklab(47.59% 0.1206 -0.1553)
OKLCHoklch(47.59% 0.197 307.8)
XYZxyz(16.8430, 9.1831, 41.4344)
Luminance0.0918 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2DAF #61AF2D
analogous
#3A2DAF #7B2DAF #AF2DA2
triadic
#7B2DAF #AF7B2D #2DAF7B
tetradic
#7B2DAF #AF3A2D #61AF2D #2DA2AF
square
#7B2DAF #AF3A2D #61AF2D #2DA2AF
split-complementary
#7B2DAF #A2AF2D #2DAF3A
monochromatic
#37144E #59207E #7B2DAF #9A49D0 #B57ADD

Accessibility & contrast

On white

7.40
#7B2DAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#7B2DAF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B2DAF
7.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B2DAF#FFFFFF#000000##FFFFFF
##7B2DAF1.007.402.847.40
#FFFFFF7.401.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B3
Deuteranopia (green-blind)
#0056AC
Tritanopia (blue-blind)
#734C6C
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7b2daf;
/* rgb */ color: rgb(123, 45, 175);
/* oklch */ color: oklch(47.6% 0.197 307.8);
Tailwind
colors: {
  custom: {
    50: '#a66ec8',
    500: '#7b2daf',
    950: '#000000',
  },
}
SCSS
$custom: #7b2daf;
$custom-light: #a66ec8;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2daf",
  "rgb": {
    "r": 123,
    "g": 45,
    "b": 175
  },
  "hsl": {
    "h": 276,
    "s": 59.091,
    "l": 43.137
  },
  "oklch": {
    "l": 0.47589,
    "c": 0.19662,
    "h": 307.8
  },
  "luminance": 0.09183
}

Semantic roles & 50–950 ramp

primary
#7B2DAF
secondary
#94C573
accent
#E24684
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7B2DAF

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

Preview Lab → · Contrast checker → · Palette generator →

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