#7945CD#7945CD

#7945CD is a mid, vivid violet. Relative luminance 0.127; OKLCH L 52.5% C 0.199 H 296.4°. Best body text is #FFFFFF at 5.92:1 contrast (WCAG AA passes).

Color values

HEX#7945CD
RGBrgb(121, 69, 205)
HSLhsl(263, 58%, 54%)
HSVhsv(263, 66%, 80%)
CMYKcmyk(41%, 66.3%, 0%, 19.6%)
CIE-LABlab(42.35, 50.90, -62.53)
CIE-LCHlch(42.35, 80.63, 309.14°)
OKLaboklab(52.52% 0.0887 -0.1785)
OKLCHoklch(52.52% 0.199 296.4)
XYZxyz(21.0298, 12.7286, 59.0946)
Luminance0.1273 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7945CD #99CD45
analogous
#4555CD #7945CD #BD45CD
triadic
#7945CD #CD7945 #45CD79
tetradic
#7945CD #CD4555 #99CD45 #45CDBD
square
#7945CD #CD4555 #99CD45 #45CDBD
split-complementary
#7945CD #CDBD45 #55CD45
monochromatic
#422077 #5C2DA8 #7945CD #9C75DA #BEA5E7

Accessibility & contrast

On white

5.92
#7945CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.55
#7945CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7945CD
5.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7945CD#FFFFFF#000000##FFFFFF
##7945CD1.005.923.555.92
#FFFFFF5.921.0021.001.00
#0000003.5521.001.0021.00
##FFFFFF5.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065D1
Deuteranopia (green-blind)
#0062CA
Tritanopia (blue-blind)
#646583
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #7945cd;
/* rgb */ color: rgb(121, 69, 205);
/* oklch */ color: oklch(52.5% 0.199 296.4);
Tailwind
colors: {
  custom: {
    50: '#a67cdd',
    500: '#7945cd',
    950: '#000000',
  },
}
SCSS
$custom: #7945cd;
$custom-light: #a67cdd;
$custom-dark: #000000;
JSON
{
  "hex": "#7945cd",
  "rgb": {
    "r": 121,
    "g": 69,
    "b": 205
  },
  "hsl": {
    "h": 262.941,
    "s": 57.627,
    "l": 53.725
  },
  "oklch": {
    "l": 0.52524,
    "c": 0.19935,
    "h": 296.4
  },
  "luminance": 0.12729
}

Semantic roles & 50–950 ramp

primary
#7945CD
secondary
#BED49A
accent
#E147A6
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100A15
muted
#7F7C83

Preview Lab

Preview with #7945CD

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

Preview Lab → · Contrast checker → · Palette generator →

#7945CD Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva