#7257EE#7257EE

#7257EE is a mid, highly saturated violet. Relative luminance 0.166; OKLCH L 57.0% C 0.216 H 285.5°. Best body text is #FFFFFF at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#7257EE
RGBrgb(114, 87, 238)
HSLhsl(251, 82%, 64%)
HSVhsv(251, 63%, 93%)
CMYKcmyk(52.1%, 63.4%, 0%, 6.7%)
CIE-LABlab(47.71, 49.04, -72.65)
CIE-LCHlch(47.71, 87.65, 304.02°)
OKLaboklab(57% 0.0577 -0.2085)
OKLCHoklch(57% 0.216 285.5)
XYZxyz(25.7756, 16.5655, 82.7116)
Luminance0.1657 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7257EE #D3EE57
analogous
#5787EE #7257EE #BD57EE
triadic
#7257EE #EE7257 #57EE72
tetradic
#7257EE #EE5787 #D3EE57 #57EEBD
square
#7257EE #EE5787 #D3EE57 #57EEBD
split-complementary
#7257EE #EEBD57 #87EE57
monochromatic
#3013B8 #431FE8 #7257EE #A18FF4 #CFC6F9

Accessibility & contrast

On white

4.87
#7257EE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.31
#7257EE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7257EE
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7257EE#FFFFFF#000000##FFFFFF
##7257EE1.004.874.314.87
#FFFFFF4.871.0021.001.00
#0000004.3121.001.0021.00
##FFFFFF4.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0075F3
Deuteranopia (green-blind)
#006DEB
Tritanopia (blue-blind)
#407C9B
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #7257ee;
/* rgb */ color: rgb(114, 87, 238);
/* oklch */ color: oklch(57.0% 0.216 285.5);
Tailwind
colors: {
  custom: {
    50: '#a488f5',
    500: '#7257ee',
    950: '#000000',
  },
}
SCSS
$custom: #7257ee;
$custom-light: #a488f5;
$custom-dark: #000000;
JSON
{
  "hex": "#7257ee",
  "rgb": {
    "r": 114,
    "g": 87,
    "b": 238
  },
  "hsl": {
    "h": 250.728,
    "s": 81.622,
    "l": 63.725
  },
  "oklch": {
    "l": 0.57003,
    "c": 0.2163,
    "h": 285.5
  },
  "luminance": 0.16567
}

Semantic roles & 50–950 ramp

primary
#7257EE
secondary
#E2EBB6
accent
#DE08B8
background
#FAF8FF
surface
#F4F0FE
border
#CECBD6
text
#100B17
muted
#7F7C85

Preview Lab

Preview with #7257EE

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

Preview Lab → · Contrast checker → · Palette generator →

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