#7251EF#7251EF

#7251EF is a mid, highly saturated violet. Relative luminance 0.157; OKLCH L 56.2% C 0.225 H 286.3°. Best body text is #FFFFFF at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#7251EF
RGBrgb(114, 81, 239)
HSLhsl(253, 83%, 63%)
HSVhsv(253, 66%, 94%)
CMYKcmyk(52.3%, 66.1%, 0%, 6.3%)
CIE-LABlab(46.57, 52.61, -75.06)
CIE-LCHlch(46.57, 91.66, 305.02°)
OKLaboklab(56.2% 0.063 -0.2156)
OKLCHoklch(56.2% 0.225 286.3)
XYZxyz(25.4572, 15.6929, 83.3323)
Luminance0.1569 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7251EF #CEEF51
analogous
#517FEF #7251EF #C151EF
triadic
#7251EF #EF7251 #51EF72
tetradic
#7251EF #EF517F #CEEF51 #51EFC1
square
#7251EF #EF517F #CEEF51 #51EFC1
split-complementary
#7251EF #EFC151 #7FEF51
monochromatic
#3311B5 #4519EA #7251EF #9F89F4 #CDC1F9

Accessibility & contrast

On white

5.07
#7251EF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.14
#7251EF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7251EF
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7251EF#FFFFFF#000000##FFFFFF
##7251EF1.005.074.145.07
#FFFFFF5.071.0021.001.00
#0000004.1421.001.0021.00
##FFFFFF5.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0072F4
Deuteranopia (green-blind)
#006AEC
Tritanopia (blue-blind)
#407999
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #7251ef;
/* rgb */ color: rgb(114, 81, 239);
/* oklch */ color: oklch(56.2% 0.225 286.3);
Tailwind
colors: {
  custom: {
    50: '#a584f5',
    500: '#7251ef',
    950: '#000000',
  },
}
SCSS
$custom: #7251ef;
$custom-light: #a584f5;
$custom-dark: #000000;
JSON
{
  "hex": "#7251ef",
  "rgb": {
    "r": 114,
    "g": 81,
    "b": 239
  },
  "hsl": {
    "h": 252.532,
    "s": 83.158,
    "l": 62.745
  },
  "oklch": {
    "l": 0.56204,
    "c": 0.22461,
    "h": 286.3
  },
  "luminance": 0.15694
}

Semantic roles & 50–950 ramp

primary
#7251EF
secondary
#DFEAB1
accent
#E006B2
background
#FAF8FF
surface
#F4EFFF
border
#CECAD7
text
#100B17
muted
#7F7C85

Preview Lab

Preview with #7251EF

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

Preview Lab → · Contrast checker → · Palette generator →

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