#7827C1#7827C1

#7827C1 is a mid, highly saturated violet. Relative luminance 0.093; OKLCH L 48.1% C 0.220 H 302.3°. Best body text is #FFFFFF at 7.35:1 contrast (WCAG AA passes).

Color values

HEX#7827C1
RGBrgb(120, 39, 193)
HSLhsl(272, 66%, 45%)
HSVhsv(272, 80%, 76%)
CMYKcmyk(37.8%, 79.8%, 0%, 24.3%)
CIE-LABlab(36.54, 61.15, -65.01)
CIE-LCHlch(36.54, 89.25, 313.24°)
OKLaboklab(48.09% 0.1172 -0.1857)
OKLCHoklch(48.09% 0.22 302.3)
XYZxyz(18.0946, 9.2943, 51.2824)
Luminance0.0929 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7827C1 #70C127
analogous
#2B27C1 #7827C1 #C127BD
triadic
#7827C1 #C17827 #27C178
tetradic
#7827C1 #C12B27 #70C127 #27BDC1
square
#7827C1 #C12B27 #70C127 #27BDC1
split-complementary
#7827C1 #BDC127 #27C12B
monochromatic
#39125B #581D8E #7827C1 #964BDB #B47EE5

Accessibility & contrast

On white

7.35
#7827C1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#7827C1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7827C1
7.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7827C1#FFFFFF#000000##FFFFFF
##7827C11.007.352.867.35
#FFFFFF7.351.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055C5
Deuteranopia (green-blind)
#0055BE
Tritanopia (blue-blind)
#685175
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #7827c1;
/* rgb */ color: rgb(120, 39, 193);
/* oklch */ color: oklch(48.1% 0.220 302.3);
Tailwind
colors: {
  custom: {
    50: '#a66bd5',
    500: '#7827c1',
    950: '#000000',
  },
}
SCSS
$custom: #7827c1;
$custom-light: #a66bd5;
$custom-dark: #000000;
JSON
{
  "hex": "#7827c1",
  "rgb": {
    "r": 120,
    "g": 39,
    "b": 193
  },
  "hsl": {
    "h": 271.558,
    "s": 66.379,
    "l": 45.49
  },
  "oklch": {
    "l": 0.48094,
    "c": 0.21957,
    "h": 302.3
  },
  "luminance": 0.09294
}

Semantic roles & 50–950 ramp

primary
#7827C1
secondary
#A0CD77
accent
#E93E8F
background
#FAF6FD
surface
#F4ECFA
border
#CEC7D3
text
#100714
muted
#7F7A83

Preview Lab

Preview with #7827C1

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

Preview Lab → · Contrast checker → · Palette generator →

#7827C1 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva