#7D45CB#7D45CB

#7D45CB is a mid, vivid violet. Relative luminance 0.129; OKLCH L 52.8% C 0.198 H 298.6°. Best body text is #FFFFFF at 5.86:1 contrast (WCAG AA passes).

Color values

HEX#7D45CB
RGBrgb(125, 69, 203)
HSLhsl(265, 56%, 53%)
HSVhsv(265, 66%, 80%)
CMYKcmyk(38.4%, 66%, 0%, 20.4%)
CIE-LABlab(42.65, 51.18, -60.87)
CIE-LCHlch(42.65, 79.52, 310.06°)
OKLaboklab(52.8% 0.0945 -0.1735)
OKLCHoklch(52.8% 0.198 298.6)
XYZxyz(21.3623, 12.9277, 57.8582)
Luminance0.1293 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D45CB #93CB45
analogous
#4550CB #7D45CB #C045CB
triadic
#7D45CB #CB7D45 #45CB7D
tetradic
#7D45CB #CB4550 #93CB45 #45CBC0
square
#7D45CB #CB4550 #93CB45 #45CBC0
split-complementary
#7D45CB #CBC045 #50CB45
monochromatic
#442175 #602EA5 #7D45CB #9E75D8 #C0A5E6

Accessibility & contrast

On white

5.86
#7D45CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.59
#7D45CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D45CB
5.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D45CB#FFFFFF#000000##FFFFFF
##7D45CB1.005.863.595.86
#FFFFFF5.861.0021.001.00
#0000003.5921.001.0021.00
##FFFFFF5.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065CF
Deuteranopia (green-blind)
#0063C8
Tritanopia (blue-blind)
#6B6482
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #7d45cb;
/* rgb */ color: rgb(125, 69, 203);
/* oklch */ color: oklch(52.8% 0.198 298.6);
Tailwind
colors: {
  custom: {
    50: '#a87cdc',
    500: '#7d45cb',
    950: '#000000',
  },
}
SCSS
$custom: #7d45cb;
$custom-light: #a87cdc;
$custom-dark: #000000;
JSON
{
  "hex": "#7d45cb",
  "rgb": {
    "r": 125,
    "g": 69,
    "b": 203
  },
  "hsl": {
    "h": 265.075,
    "s": 56.303,
    "l": 53.333
  },
  "oklch": {
    "l": 0.52798,
    "c": 0.19752,
    "h": 298.6
  },
  "luminance": 0.12928
}

Semantic roles & 50–950 ramp

primary
#7D45CB
secondary
#BBD399
accent
#E048A0
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100A15
muted
#7F7C83

Preview Lab

Preview with #7D45CB

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

Preview Lab → · Contrast checker → · Palette generator →

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