#7C4BEC#7C4BEC

#7C4BEC is a mid, highly saturated violet. Relative luminance 0.154; OKLCH L 56.0% C 0.228 H 291.2°. Best body text is #FFFFFF at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#7C4BEC
RGBrgb(124, 75, 236)
HSLhsl(258, 81%, 61%)
HSVhsv(258, 68%, 93%)
CMYKcmyk(47.5%, 68.2%, 0%, 7.5%)
CIE-LABlab(46.14, 56.58, -74.04)
CIE-LCHlch(46.14, 93.18, 307.39°)
OKLaboklab(56.05% 0.0824 -0.2122)
OKLCHoklch(56.05% 0.228 291.2)
XYZxyz(25.9643, 15.3724, 80.9397)
Luminance0.1537 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C4BEC #BBEC4B
analogous
#4B6AEC #7C4BEC #CD4BEC
triadic
#7C4BEC #EC7C4B #4BEC7C
tetradic
#7C4BEC #EC4B6A #BBEC4B #4BECCD
square
#7C4BEC #EC4B6A #BBEC4B #4BECCD
split-complementary
#7C4BEC #ECCD4B #6AEC4B
monochromatic
#4012AB #5518E2 #7C4BEC #A482F2 #CDBAF8

Accessibility & contrast

On white

5.15
#7C4BEC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.07
#7C4BEC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7C4BEC
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C4BEC#FFFFFF#000000##FFFFFF
##7C4BEC1.005.154.075.15
#FFFFFF5.151.0021.001.00
#0000004.0721.001.0021.00
##FFFFFF5.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0070F1
Deuteranopia (green-blind)
#006AE9
Tritanopia (blue-blind)
#587496
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #7c4bec;
/* rgb */ color: rgb(124, 75, 236);
/* oklch */ color: oklch(56.0% 0.228 291.2);
Tailwind
colors: {
  custom: {
    50: '#ab81f3',
    500: '#7c4bec',
    950: '#000000',
  },
}
SCSS
$custom: #7c4bec;
$custom-light: #ab81f3;
$custom-dark: #000000;
JSON
{
  "hex": "#7c4bec",
  "rgb": {
    "r": 124,
    "g": 75,
    "b": 236
  },
  "hsl": {
    "h": 258.261,
    "s": 80.905,
    "l": 60.98
  },
  "oklch": {
    "l": 0.56049,
    "c": 0.22767,
    "h": 291.2
  },
  "luminance": 0.15373
}

Semantic roles & 50–950 ramp

primary
#7C4BEC
secondary
#D5E8AB
accent
#DD089C
background
#FBF8FF
surface
#F6EFFE
border
#D0CAD6
text
#110A17
muted
#807C85

Preview Lab

Preview with #7C4BEC

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

Preview Lab → · Contrast checker → · Palette generator →

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