#7257EC#7257EC

#7257EC is a mid, highly saturated violet. Relative luminance 0.165; OKLCH L 56.8% C 0.214 H 285.7°. Best body text is #FFFFFF at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#7257EC
RGBrgb(114, 87, 236)
HSLhsl(251, 80%, 63%)
HSVhsv(251, 63%, 93%)
CMYKcmyk(51.7%, 63.1%, 0%, 7.5%)
CIE-LABlab(47.56, 48.46, -71.77)
CIE-LCHlch(47.56, 86.59, 304.03°)
OKLaboklab(56.85% 0.0578 -0.2059)
OKLCHoklch(56.85% 0.214 285.7)
XYZxyz(25.4834, 16.4486, 81.1727)
Luminance0.1645 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7257EC #D1EC57
analogous
#5787EC #7257EC #BC57EC
triadic
#7257EC #EC7257 #57EC72
tetradic
#7257EC #EC5787 #D1EC57 #57ECBC
square
#7257EC #EC5787 #D1EC57 #57ECBC
split-complementary
#7257EC #ECBC57 #87EC57
monochromatic
#3114B4 #4420E6 #7257EC #A08EF2 #CEC5F8

Accessibility & contrast

On white

4.90
#7257EC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.29
#7257EC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7257EC
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7257EC#FFFFFF#000000##FFFFFF
##7257EC1.004.904.294.90
#FFFFFF4.901.0021.001.00
#0000004.2921.001.0021.00
##FFFFFF4.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0075F1
Deuteranopia (green-blind)
#006CE9
Tritanopia (blue-blind)
#427B9A
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #7257ec;
/* rgb */ color: rgb(114, 87, 236);
/* oklch */ color: oklch(56.8% 0.214 285.7);
Tailwind
colors: {
  custom: {
    50: '#a488f3',
    500: '#7257ec',
    950: '#000000',
  },
}
SCSS
$custom: #7257ec;
$custom-light: #a488f3;
$custom-dark: #000000;
JSON
{
  "hex": "#7257ec",
  "rgb": {
    "r": 114,
    "g": 87,
    "b": 236
  },
  "hsl": {
    "h": 250.872,
    "s": 79.679,
    "l": 63.333
  },
  "oklch": {
    "l": 0.56847,
    "c": 0.21386,
    "h": 285.7
  },
  "luminance": 0.1645
}

Semantic roles & 50–950 ramp

primary
#7257EC
secondary
#E0EAB5
accent
#DC0AB6
background
#FAF8FF
surface
#F4F0FE
border
#CECBD6
text
#100B17
muted
#7F7C85

Preview Lab

Preview with #7257EC

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

Preview Lab → · Contrast checker → · Palette generator →

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