#7257BA#7257BA

#7257BA is a mid, vivid violet. Relative luminance 0.139; OKLCH L 53.3% C 0.150 H 293.2°. Best body text is #FFFFFF at 5.54:1 contrast (WCAG AA passes).

Color values

HEX#7257BA
RGBrgb(114, 87, 186)
HSLhsl(256, 42%, 54%)
HSVhsv(256, 53%, 73%)
CMYKcmyk(38.7%, 53.2%, 0%, 27.1%)
CIE-LABlab(44.14, 34.17, -48.65)
CIE-LCHlch(44.14, 59.45, 305.09°)
OKLaboklab(53.26% 0.0591 -0.1379)
OKLCHoklch(53.26% 0.15 293.2)
XYZxyz(19.2082, 13.9385, 48.1232)
Luminance0.1394 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7257BA #9FBA57
analogous
#576DBA #7257BA #A357BA
triadic
#7257BA #BA7257 #57BA72
tetradic
#7257BA #BA576D #9FBA57 #57BAA3
square
#7257BA #BA576D #9FBA57 #57BAA3
split-complementary
#7257BA #BAA357 #6DBA57
monochromatic
#3D2C6B #563E96 #7257BA #9682CC #BBAEDE

Accessibility & contrast

On white

5.54
#7257BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.79
#7257BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7257BA
5.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7257BA#FFFFFF#000000##FFFFFF
##7257BA1.005.543.795.54
#FFFFFF5.541.0021.001.00
#0000003.7921.001.0021.00
##FFFFFF5.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C6ABD
Deuteranopia (green-blind)
#3267B8
Tritanopia (blue-blind)
#606B80
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #7257ba;
/* rgb */ color: rgb(114, 87, 186);
/* oklch */ color: oklch(53.3% 0.150 293.2);
Tailwind
colors: {
  custom: {
    50: '#9e87cf',
    500: '#7257ba',
    950: '#000000',
  },
}
SCSS
$custom: #7257ba;
$custom-light: #9e87cf;
$custom-dark: #000000;
JSON
{
  "hex": "#7257ba",
  "rgb": {
    "r": 114,
    "g": 87,
    "b": 186
  },
  "hsl": {
    "h": 256.364,
    "s": 41.772,
    "l": 53.529
  },
  "oklch": {
    "l": 0.53259,
    "c": 0.15005,
    "h": 293.2
  },
  "luminance": 0.13939
}

Semantic roles & 50–950 ramp

primary
#7257BA
secondary
#C0CCA1
accent
#D256B0
background
#FAF8FC
surface
#F3EFF9
border
#CDCAD2
text
#0F0B14
muted
#7F7C82

Preview Lab

Preview with #7257BA

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

Preview Lab → · Contrast checker → · Palette generator →

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