#7D45BC#7D45BC

#7D45BC is a mid, vivid violet. Relative luminance 0.122; OKLCH L 51.7% C 0.180 H 302.1°. Best body text is #FFFFFF at 6.09:1 contrast (WCAG AA passes).

Color values

HEX#7D45BC
RGBrgb(125, 69, 188)
HSLhsl(268, 47%, 50%)
HSVhsv(268, 63%, 74%)
CMYKcmyk(33.5%, 63.3%, 0%, 26.3%)
CIE-LABlab(41.61, 47.40, -53.83)
CIE-LCHlch(41.61, 71.73, 311.36°)
OKLaboklab(51.71% 0.0959 -0.1528)
OKLCHoklch(51.71% 0.18 302.1)
XYZxyz(19.6605, 12.2470, 48.8953)
Luminance0.1225 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D45BC #84BC45
analogous
#4548BC #7D45BC #B845BC
triadic
#7D45BC #BC7D45 #45BC7D
tetradic
#7D45BC #BC4548 #84BC45 #45BCB8
square
#7D45BC #BC4548 #84BC45 #45BCB8
split-complementary
#7D45BC #BCB845 #48BC45
monochromatic
#412463 #5F3490 #7D45BC #9C72CC #BC9FDC

Accessibility & contrast

On white

6.09
#7D45BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.45
#7D45BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D45BC
6.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D45BC#FFFFFF#000000##FFFFFF
##7D45BC1.006.093.456.09
#FFFFFF6.091.0021.001.00
#0000003.4521.001.0021.00
##FFFFFF6.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061C0
Deuteranopia (green-blind)
#1C62B9
Tritanopia (blue-blind)
#705F7A
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #7d45bc;
/* rgb */ color: rgb(125, 69, 188);
/* oklch */ color: oklch(51.7% 0.180 302.1);
Tailwind
colors: {
  custom: {
    50: '#a77cd1',
    500: '#7d45bc',
    950: '#000000',
  },
}
SCSS
$custom: #7d45bc;
$custom-light: #a77cd1;
$custom-dark: #000000;
JSON
{
  "hex": "#7d45bc",
  "rgb": {
    "r": 125,
    "g": 69,
    "b": 188
  },
  "hsl": {
    "h": 268.235,
    "s": 47.036,
    "l": 50.392
  },
  "oklch": {
    "l": 0.51709,
    "c": 0.18037,
    "h": 302.1
  },
  "luminance": 0.12247
}

Semantic roles & 50–950 ramp

primary
#7D45BC
secondary
#B0C994
accent
#D75198
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100A14
muted
#7F7C82

Preview Lab

Preview with #7D45BC

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

Preview Lab → · Contrast checker → · Palette generator →

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