#7257BF#7257BF

#7257BF is a mid, vivid violet. Relative luminance 0.142; OKLCH L 53.6% C 0.157 H 292.3°. Best body text is #FFFFFF at 5.48:1 contrast (WCAG AA passes).

Color values

HEX#7257BF
RGBrgb(114, 87, 191)
HSLhsl(256, 45%, 55%)
HSVhsv(256, 54%, 75%)
CMYKcmyk(40.3%, 54.5%, 0%, 25.1%)
CIE-LABlab(44.45, 35.57, -51.06)
CIE-LCHlch(44.45, 62.23, 304.86°)
OKLaboklab(53.59% 0.0593 -0.145)
OKLCHoklch(53.59% 0.157 292.3)
XYZxyz(19.7491, 14.1549, 50.9717)
Luminance0.1416 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7257BF #A4BF57
analogous
#5770BF #7257BF #A657BF
triadic
#7257BF #BF7257 #57BF72
tetradic
#7257BF #BF5770 #A4BF57 #57BFA6
square
#7257BF #BF5770 #A4BF57 #57BFA6
split-complementary
#7257BF #BFA657 #70BF57
monochromatic
#3D2B71 #553C9D #7257BF #9783D0 #BCB0E1

Accessibility & contrast

On white

5.48
#7257BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.83
#7257BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7257BF
5.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7257BF#FFFFFF#000000##FFFFFF
##7257BF1.005.483.835.48
#FFFFFF5.481.0021.001.00
#0000003.8321.001.0021.00
##FFFFFF5.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#266BC3
Deuteranopia (green-blind)
#2C67BD
Tritanopia (blue-blind)
#5E6D82
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #7257bf;
/* rgb */ color: rgb(114, 87, 191);
/* oklch */ color: oklch(53.6% 0.157 292.3);
Tailwind
colors: {
  custom: {
    50: '#9f87d3',
    500: '#7257bf',
    950: '#000000',
  },
}
SCSS
$custom: #7257bf;
$custom-light: #9f87d3;
$custom-dark: #000000;
JSON
{
  "hex": "#7257bf",
  "rgb": {
    "r": 114,
    "g": 87,
    "b": 191
  },
  "hsl": {
    "h": 255.577,
    "s": 44.828,
    "l": 54.51
  },
  "oklch": {
    "l": 0.53588,
    "c": 0.15668,
    "h": 292.3
  },
  "luminance": 0.14155
}

Semantic roles & 50–950 ramp

primary
#7257BF
secondary
#C3CFA3
accent
#D553B3
background
#FAF8FD
surface
#F4EFFA
border
#CECAD3
text
#0F0B14
muted
#7F7C83

Preview Lab

Preview with #7257BF

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

Preview Lab → · Contrast checker → · Palette generator →

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