#7257D2#7257D2

#7257D2 is a mid, vivid violet. Relative luminance 0.150; OKLCH L 54.9% C 0.181 H 289.1°. Best body text is #FFFFFF at 5.24:1 contrast (WCAG AA passes).

Color values

HEX#7257D2
RGBrgb(114, 87, 210)
HSLhsl(253, 58%, 58%)
HSVhsv(253, 59%, 82%)
CMYKcmyk(45.7%, 58.6%, 0%, 17.6%)
CIE-LABlab(45.70, 40.95, -60.02)
CIE-LCHlch(45.70, 72.66, 304.30°)
OKLaboklab(54.9% 0.0594 -0.1714)
OKLCHoklch(54.9% 0.181 289.1)
XYZxyz(21.9772, 15.0461, 62.7065)
Luminance0.1505 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7257D2 #B7D257
analogous
#5779D2 #7257D2 #AF57D2
triadic
#7257D2 #D27257 #57D272
tetradic
#7257D2 #D25779 #B7D257 #57D2AF
square
#7257D2 #D25779 #B7D257 #57D2AF
split-complementary
#7257D2 #D2AF57 #79D257
monochromatic
#3B258A #5032BA #7257D2 #9B87DF #C3B8EC

Accessibility & contrast

On white

5.24
#7257D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.01
#7257D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7257D2
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7257D2#FFFFFF#000000##FFFFFF
##7257D21.005.244.015.24
#FFFFFF5.241.0021.001.00
#0000004.0121.001.0021.00
##FFFFFF5.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FD6
Deuteranopia (green-blind)
#0069CF
Tritanopia (blue-blind)
#54738C
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #7257d2;
/* rgb */ color: rgb(114, 87, 210);
/* oklch */ color: oklch(54.9% 0.181 289.1);
Tailwind
colors: {
  custom: {
    50: '#a187e1',
    500: '#7257d2',
    950: '#000000',
  },
}
SCSS
$custom: #7257d2;
$custom-light: #a187e1;
$custom-dark: #000000;
JSON
{
  "hex": "#7257d2",
  "rgb": {
    "r": 114,
    "g": 87,
    "b": 210
  },
  "hsl": {
    "h": 253.171,
    "s": 57.746,
    "l": 58.235
  },
  "oklch": {
    "l": 0.54902,
    "c": 0.18137,
    "h": 289.1
  },
  "luminance": 0.15047
}

Semantic roles & 50–950 ramp

primary
#7257D2
secondary
#D0DBAA
accent
#E147BF
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#0F0B15
muted
#7F7C83

Preview Lab

Preview with #7257D2

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

Preview Lab → · Contrast checker → · Palette generator →

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