#7256EC#7256EC

#7256EC is a mid, highly saturated violet. Relative luminance 0.163; OKLCH L 56.7% C 0.215 H 285.9°. Best body text is #FFFFFF at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#7256EC
RGBrgb(114, 86, 236)
HSLhsl(251, 80%, 63%)
HSVhsv(251, 64%, 93%)
CMYKcmyk(51.7%, 63.6%, 0%, 7.5%)
CIE-LABlab(47.35, 49.01, -72.10)
CIE-LCHlch(47.35, 87.18, 304.21°)
OKLaboklab(56.7% 0.0588 -0.2069)
OKLCHoklch(56.7% 0.215 285.9)
XYZxyz(25.4030, 16.2878, 81.1459)
Luminance0.1629 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7256EC #D0EC56
analogous
#5685EC #7256EC #BD56EC
triadic
#7256EC #EC7256 #56EC72
tetradic
#7256EC #EC5685 #D0EC56 #56ECBD
square
#7256EC #EC5685 #D0EC56 #56ECBD
split-complementary
#7256EC #ECBD56 #85EC56
monochromatic
#3214B3 #441FE6 #7256EC #A08DF2 #CEC4F8

Accessibility & contrast

On white

4.93
#7256EC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.26
#7256EC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7256EC
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7256EC#FFFFFF#000000##FFFFFF
##7256EC1.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)
#0074F1
Deuteranopia (green-blind)
#006CE9
Tritanopia (blue-blind)
#427B99
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #7256ec;
/* rgb */ color: rgb(114, 86, 236);
/* oklch */ color: oklch(56.7% 0.215 285.9);
Tailwind
colors: {
  custom: {
    50: '#a487f3',
    500: '#7256ec',
    950: '#000000',
  },
}
SCSS
$custom: #7256ec;
$custom-light: #a487f3;
$custom-dark: #000000;
JSON
{
  "hex": "#7256ec",
  "rgb": {
    "r": 114,
    "g": 86,
    "b": 236
  },
  "hsl": {
    "h": 251.2,
    "s": 79.787,
    "l": 63.137
  },
  "oklch": {
    "l": 0.56696,
    "c": 0.21508,
    "h": 285.9
  },
  "luminance": 0.16289
}

Semantic roles & 50–950 ramp

primary
#7256EC
secondary
#E0EAB4
accent
#DC09B5
background
#FAF8FF
surface
#F4F0FE
border
#CECBD6
text
#100B17
muted
#7F7C85

Preview Lab

Preview with #7256EC

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

Preview Lab → · Contrast checker → · Palette generator →

#7256EC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva