#7256EB#7256EB

#7256EB is a mid, highly saturated violet. Relative luminance 0.162; OKLCH L 56.6% C 0.214 H 286.0°. Best body text is #FFFFFF at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#7256EB
RGBrgb(114, 86, 235)
HSLhsl(251, 79%, 63%)
HSVhsv(251, 63%, 92%)
CMYKcmyk(51.5%, 63.4%, 0%, 7.8%)
CIE-LABlab(47.27, 48.72, -71.66)
CIE-LCHlch(47.27, 86.66, 304.21°)
OKLaboklab(56.62% 0.0589 -0.2056)
OKLCHoklch(56.62% 0.214 286)
XYZxyz(25.2581, 16.2298, 80.3829)
Luminance0.1623 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7256EB #CFEB56
analogous
#5684EB #7256EB #BC56EB
triadic
#7256EB #EB7256 #56EB72
tetradic
#7256EB #EB5684 #CFEB56 #56EBBC
square
#7256EB #EB5684 #CFEB56 #56EBBC
split-complementary
#7256EB #EBBC56 #84EB56
monochromatic
#3215B2 #441FE5 #7256EB #A08DF1 #CDC3F8

Accessibility & contrast

On white

4.95
#7256EB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.25
#7256EB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7256EB
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7256EB#FFFFFF#000000##FFFFFF
##7256EB1.004.954.254.95
#FFFFFF4.951.0021.001.00
#0000004.2521.001.0021.00
##FFFFFF4.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0074F0
Deuteranopia (green-blind)
#006CE8
Tritanopia (blue-blind)
#437A99
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #7256eb;
/* rgb */ color: rgb(114, 86, 235);
/* oklch */ color: oklch(56.6% 0.214 286.0);
Tailwind
colors: {
  custom: {
    50: '#a487f2',
    500: '#7256eb',
    950: '#000000',
  },
}
SCSS
$custom: #7256eb;
$custom-light: #a487f2;
$custom-dark: #000000;
JSON
{
  "hex": "#7256eb",
  "rgb": {
    "r": 114,
    "g": 86,
    "b": 235
  },
  "hsl": {
    "h": 251.275,
    "s": 78.836,
    "l": 62.941
  },
  "oklch": {
    "l": 0.56618,
    "c": 0.21386,
    "h": 286
  },
  "luminance": 0.16231
}

Semantic roles & 50–950 ramp

primary
#7256EB
secondary
#DFE9B4
accent
#DB0AB4
background
#FAF8FE
surface
#F4F0FD
border
#CECBD5
text
#100B17
muted
#7F7C85

Preview Lab

Preview with #7256EB

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

Preview Lab → · Contrast checker → · Palette generator →

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