#7257E7#7257E7

#7257E7 is a mid, highly saturated violet. Relative luminance 0.162; OKLCH L 56.5% C 0.208 H 286.3°. Best body text is #FFFFFF at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#7257E7
RGBrgb(114, 87, 231)
HSLhsl(251, 75%, 62%)
HSVhsv(251, 62%, 91%)
CMYKcmyk(50.6%, 62.3%, 0%, 9.4%)
CIE-LABlab(47.19, 47.01, -69.55)
CIE-LCHlch(47.19, 83.95, 304.05°)
OKLaboklab(56.46% 0.0583 -0.1994)
OKLCHoklch(56.46% 0.208 286.3)
XYZxyz(24.7672, 16.1621, 77.4004)
Luminance0.1616 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7257E7 #CCE757
analogous
#5784E7 #7257E7 #BA57E7
triadic
#7257E7 #E77257 #57E772
tetradic
#7257E7 #E75784 #CCE757 #57E7BA
square
#7257E7 #E75784 #CCE757 #57E7BA
split-complementary
#7257E7 #E7BA57 #84E757
monochromatic
#3418AB #4521DF #7257E7 #9F8DEF #CCC2F6

Accessibility & contrast

On white

4.96
#7257E7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.23
#7257E7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7257E7
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7257E7#FFFFFF#000000##FFFFFF
##7257E71.004.964.234.96
#FFFFFF4.961.0021.001.00
#0000004.2321.001.0021.00
##FFFFFF4.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0074EC
Deuteranopia (green-blind)
#006CE4
Tritanopia (blue-blind)
#467A97
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #7257e7;
/* rgb */ color: rgb(114, 87, 231);
/* oklch */ color: oklch(56.5% 0.208 286.3);
Tailwind
colors: {
  custom: {
    50: '#a488f0',
    500: '#7257e7',
    950: '#000000',
  },
}
SCSS
$custom: #7257e7;
$custom-light: #a488f0;
$custom-dark: #000000;
JSON
{
  "hex": "#7257e7",
  "rgb": {
    "r": 114,
    "g": 87,
    "b": 231
  },
  "hsl": {
    "h": 251.25,
    "s": 75,
    "l": 62.353
  },
  "oklch": {
    "l": 0.56461,
    "c": 0.20772,
    "h": 286.3
  },
  "luminance": 0.16163
}

Semantic roles & 50–950 ramp

primary
#7257E7
secondary
#DDE7B3
accent
#D70EB2
background
#FAF8FE
surface
#F4F0FD
border
#CECBD5
text
#100B17
muted
#7F7C85

Preview Lab

Preview with #7257E7

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

Preview Lab → · Contrast checker → · Palette generator →

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