#7257E4#7257E4

#7257E4 is a mid, highly saturated violet. Relative luminance 0.160; OKLCH L 56.2% C 0.204 H 286.7°. Best body text is #FFFFFF at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#7257E4
RGBrgb(114, 87, 228)
HSLhsl(251, 72%, 62%)
HSVhsv(251, 62%, 89%)
CMYKcmyk(50%, 61.8%, 0%, 10.6%)
CIE-LABlab(46.97, 46.14, -68.21)
CIE-LCHlch(46.97, 82.35, 304.07°)
OKLaboklab(56.23% 0.0585 -0.1955)
OKLCHoklch(56.23% 0.204 286.7)
XYZxyz(24.3471, 15.9941, 75.1880)
Luminance0.1600 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7257E4 #C9E457
analogous
#5783E4 #7257E4 #B857E4
triadic
#7257E4 #E47257 #57E472
tetradic
#7257E4 #E45783 #C9E457 #57E4B8
square
#7257E4 #E45783 #C9E457 #57E4B8
split-complementary
#7257E4 #E4B857 #83E457
monochromatic
#351BA6 #4623DB #7257E4 #9E8CEC #CBC0F5

Accessibility & contrast

On white

5.00
#7257E4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.20
#7257E4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7257E4
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7257E4#FFFFFF#000000##FFFFFF
##7257E41.005.004.205.00
#FFFFFF5.001.0021.001.00
#0000004.2021.001.0021.00
##FFFFFF5.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0073E9
Deuteranopia (green-blind)
#006BE1
Tritanopia (blue-blind)
#487995
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #7257e4;
/* rgb */ color: rgb(114, 87, 228);
/* oklch */ color: oklch(56.2% 0.204 286.7);
Tailwind
colors: {
  custom: {
    50: '#a388ed',
    500: '#7257e4',
    950: '#000000',
  },
}
SCSS
$custom: #7257e4;
$custom-light: #a388ed;
$custom-dark: #000000;
JSON
{
  "hex": "#7257e4",
  "rgb": {
    "r": 114,
    "g": 87,
    "b": 228
  },
  "hsl": {
    "h": 251.489,
    "s": 72.308,
    "l": 61.765
  },
  "oklch": {
    "l": 0.56232,
    "c": 0.20402,
    "h": 286.7
  },
  "luminance": 0.15995
}

Semantic roles & 50–950 ramp

primary
#7257E4
secondary
#DCE6B1
accent
#D411AF
background
#FAF8FE
surface
#F4F0FD
border
#CECBD5
text
#100B16
muted
#7F7C84

Preview Lab

Preview with #7257E4

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

Preview Lab → · Contrast checker → · Palette generator →

#7257E4 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva