#7F56DB#7F56DB

#7F56DB is a mid, vivid violet. Relative luminance 0.163; OKLCH L 56.6% C 0.194 H 293.4°. Best body text is #FFFFFF at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#7F56DB
RGBrgb(127, 86, 219)
HSLhsl(258, 65%, 60%)
HSVhsv(258, 61%, 86%)
CMYKcmyk(42%, 60.7%, 0%, 14.1%)
CIE-LABlab(47.34, 46.75, -62.44)
CIE-LCHlch(47.34, 78.00, 306.82°)
OKLaboklab(56.6% 0.0772 -0.1781)
OKLCHoklch(56.6% 0.194 293.4)
XYZxyz(24.8629, 16.2814, 68.8368)
Luminance0.1628 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F56DB #B2DB56
analogous
#5670DB #7F56DB #C156DB
triadic
#7F56DB #DB7F56 #56DB7F
tetradic
#7F56DB #DB5670 #B2DB56 #56DBC1
square
#7F56DB #DB5670 #B2DB56 #56DBC1
split-complementary
#7F56DB #DBC156 #70DB56
monochromatic
#452097 #5C2BC9 #7F56DB #A588E6 #CBBBF0

Accessibility & contrast

On white

4.93
#7F56DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.26
#7F56DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F56DB
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F56DB#FFFFFF#000000##FFFFFF
##7F56DB1.004.934.264.93
#FFFFFF4.931.0021.001.00
#0000004.2621.001.0021.00
##FFFFFF4.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0072DF
Deuteranopia (green-blind)
#006ED8
Tritanopia (blue-blind)
#667490
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #7f56db;
/* rgb */ color: rgb(127, 86, 219);
/* oklch */ color: oklch(56.6% 0.194 293.4);
Tailwind
colors: {
  custom: {
    50: '#aa87e7',
    500: '#7f56db',
    950: '#000000',
  },
}
SCSS
$custom: #7f56db;
$custom-light: #aa87e7;
$custom-dark: #000000;
JSON
{
  "hex": "#7f56db",
  "rgb": {
    "r": 127,
    "g": 86,
    "b": 219
  },
  "hsl": {
    "h": 258.496,
    "s": 64.878,
    "l": 59.804
  },
  "oklch": {
    "l": 0.56595,
    "c": 0.19407,
    "h": 293.4
  },
  "luminance": 0.16282
}

Semantic roles & 50–950 ramp

primary
#7F56DB
secondary
#D0E0AD
accent
#E840B4
background
#FAF8FE
surface
#F5F0FD
border
#CFCBD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #7F56DB

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

Preview Lab → · Contrast checker → · Palette generator →

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