#7256EF#7256EF

#7256EF is a mid, highly saturated violet. Relative luminance 0.165; OKLCH L 56.9% C 0.219 H 285.5°. Best body text is #FFFFFF at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#7256EF
RGBrgb(114, 86, 239)
HSLhsl(251, 83%, 64%)
HSVhsv(251, 64%, 94%)
CMYKcmyk(52.3%, 64%, 0%, 6.3%)
CIE-LABlab(47.58, 49.88, -73.42)
CIE-LCHlch(47.58, 88.76, 304.19°)
OKLaboklab(56.93% 0.0585 -0.2107)
OKLCHoklch(56.93% 0.219 285.5)
XYZxyz(25.8425, 16.4636, 83.4607)
Luminance0.1646 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7256EF #D3EF56
analogous
#5686EF #7256EF #BE56EF
triadic
#7256EF #EF7256 #56EF72
tetradic
#7256EF #EF5686 #D3EF56 #56EFBE
square
#7256EF #EF5686 #D3EF56 #56EFBE
split-complementary
#7256EF #EFBE56 #86EF56
monochromatic
#3012B9 #431EEA #7256EF #A18EF4 #CFC6FA

Accessibility & contrast

On white

4.89
#7256EF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.29
#7256EF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7256EF
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7256EF#FFFFFF#000000##FFFFFF
##7256EF1.004.894.294.89
#FFFFFF4.891.0021.001.00
#0000004.2921.001.0021.00
##FFFFFF4.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0075F4
Deuteranopia (green-blind)
#006CEC
Tritanopia (blue-blind)
#3F7C9B
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #7256ef;
/* rgb */ color: rgb(114, 86, 239);
/* oklch */ color: oklch(56.9% 0.219 285.5);
Tailwind
colors: {
  custom: {
    50: '#a587f5',
    500: '#7256ef',
    950: '#000000',
  },
}
SCSS
$custom: #7256ef;
$custom-light: #a587f5;
$custom-dark: #000000;
JSON
{
  "hex": "#7256ef",
  "rgb": {
    "r": 114,
    "g": 86,
    "b": 239
  },
  "hsl": {
    "h": 250.98,
    "s": 82.703,
    "l": 63.725
  },
  "oklch": {
    "l": 0.56932,
    "c": 0.21871,
    "h": 285.5
  },
  "luminance": 0.16465
}

Semantic roles & 50–950 ramp

primary
#7256EF
secondary
#E2EBB5
accent
#DF06B7
background
#FAF8FF
surface
#F4F0FF
border
#CECBD7
text
#100B17
muted
#7F7C85

Preview Lab

Preview with #7256EF

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

Preview Lab → · Contrast checker → · Palette generator →

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