#7257EF#7257EF

#7257EF is a mid, highly saturated violet. Relative luminance 0.166; OKLCH L 57.1% C 0.218 H 285.3°. Best body text is #FFFFFF at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#7257EF
RGBrgb(114, 87, 239)
HSLhsl(251, 83%, 64%)
HSVhsv(251, 64%, 94%)
CMYKcmyk(52.3%, 63.6%, 0%, 6.3%)
CIE-LABlab(47.78, 49.33, -73.08)
CIE-LCHlch(47.78, 88.17, 304.02°)
OKLaboklab(57.08% 0.0576 -0.2098)
OKLCHoklch(57.08% 0.218 285.3)
XYZxyz(25.9229, 16.6244, 83.4875)
Luminance0.1663 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7257EF #D4EF57
analogous
#5788EF #7257EF #BE57EF
triadic
#7257EF #EF7257 #57EF72
tetradic
#7257EF #EF5788 #D4EF57 #57EFBE
square
#7257EF #EF5788 #D4EF57 #57EFBE
split-complementary
#7257EF #EFBE57 #88EF57
monochromatic
#3012BA #431FEA #7257EF #A18FF4 #D0C7FA

Accessibility & contrast

On white

4.86
#7257EF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.33
#7257EF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7257EF
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7257EF#FFFFFF#000000##FFFFFF
##7257EF1.004.864.334.86
#FFFFFF4.861.0021.001.00
#0000004.3321.001.0021.00
##FFFFFF4.861.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7257ef;
/* rgb */ color: rgb(114, 87, 239);
/* oklch */ color: oklch(57.1% 0.218 285.3);
Tailwind
colors: {
  custom: {
    50: '#a588f5',
    500: '#7257ef',
    950: '#000000',
  },
}
SCSS
$custom: #7257ef;
$custom-light: #a588f5;
$custom-dark: #000000;
JSON
{
  "hex": "#7257ef",
  "rgb": {
    "r": 114,
    "g": 87,
    "b": 239
  },
  "hsl": {
    "h": 250.658,
    "s": 82.609,
    "l": 63.922
  },
  "oklch": {
    "l": 0.57081,
    "c": 0.21752,
    "h": 285.3
  },
  "luminance": 0.16626
}

Semantic roles & 50–950 ramp

primary
#7257EF
secondary
#E2ECB6
accent
#DF06B9
background
#FAF8FF
surface
#F4F0FF
border
#CECBD7
text
#100B17
muted
#7F7C85

Preview Lab

Preview with #7257EF

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

Preview Lab → · Contrast checker → · Palette generator →

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