#7251F2#7251F2

#7251F2 is a mid, highly saturated violet. Relative luminance 0.159; OKLCH L 56.4% C 0.228 H 285.9°. Best body text is #FFFFFF at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#7251F2
RGBrgb(114, 81, 242)
HSLhsl(252, 86%, 63%)
HSVhsv(252, 67%, 95%)
CMYKcmyk(52.9%, 66.5%, 0%, 5.1%)
CIE-LABlab(46.81, 53.46, -76.36)
CIE-LCHlch(46.81, 93.22, 305.00°)
OKLaboklab(56.45% 0.0626 -0.2194)
OKLCHoklch(56.45% 0.228 285.9)
XYZxyz(25.9041, 15.8717, 85.6858)
Luminance0.1587 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7251F2 #D1F251
analogous
#5180F2 #7251F2 #C251F2
triadic
#7251F2 #F27251 #51F272
tetradic
#7251F2 #F25180 #D1F251 #51F2C2
square
#7251F2 #F25180 #D1F251 #51F2C2
split-complementary
#7251F2 #F2C251 #80F251
monochromatic
#310EBB #4418EE #7251F2 #A08AF6 #CEC3FB

Accessibility & contrast

On white

5.03
#7251F2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.17
#7251F2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7251F2
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7251F2#FFFFFF#000000##FFFFFF
##7251F21.005.034.175.03
#FFFFFF5.031.0021.001.00
#0000004.1721.001.0021.00
##FFFFFF5.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0073F7
Deuteranopia (green-blind)
#006AEF
Tritanopia (blue-blind)
#3D7A9B
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #7251f2;
/* rgb */ color: rgb(114, 81, 242);
/* oklch */ color: oklch(56.4% 0.228 285.9);
Tailwind
colors: {
  custom: {
    50: '#a584f7',
    500: '#7251f2',
    950: '#000000',
  },
}
SCSS
$custom: #7251f2;
$custom-light: #a584f7;
$custom-dark: #000000;
JSON
{
  "hex": "#7251f2",
  "rgb": {
    "r": 114,
    "g": 81,
    "b": 242
  },
  "hsl": {
    "h": 252.298,
    "s": 86.096,
    "l": 63.333
  },
  "oklch": {
    "l": 0.56448,
    "c": 0.22815,
    "h": 285.9
  },
  "luminance": 0.15873
}

Semantic roles & 50–950 ramp

primary
#7251F2
secondary
#E0ECB3
accent
#E303B5
background
#FAF8FF
surface
#F4EFFF
border
#CECAD7
text
#110B17
muted
#807C85

Preview Lab

Preview with #7251F2

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

Preview Lab → · Contrast checker → · Palette generator →

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