#7257BB#7257BB

#7257BB is a mid, vivid violet. Relative luminance 0.140; OKLCH L 53.3% C 0.151 H 293.0°. Best body text is #FFFFFF at 5.53:1 contrast (WCAG AA passes).

Color values

HEX#7257BB
RGBrgb(114, 87, 187)
HSLhsl(256, 42%, 54%)
HSVhsv(256, 53%, 73%)
CMYKcmyk(39%, 53.5%, 0%, 26.7%)
CIE-LABlab(44.21, 34.45, -49.13)
CIE-LCHlch(44.21, 60.01, 305.04°)
OKLaboklab(53.32% 0.0592 -0.1393)
OKLCHoklch(53.32% 0.151 293)
XYZxyz(19.3149, 13.9812, 48.6851)
Luminance0.1398 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7257BB #A0BB57
analogous
#576EBB #7257BB #A457BB
triadic
#7257BB #BB7257 #57BB72
tetradic
#7257BB #BB576E #A0BB57 #57BBA4
square
#7257BB #BB576E #A0BB57 #57BBA4
split-complementary
#7257BB #BBA457 #6EBB57
monochromatic
#3D2C6C #563D97 #7257BB #9783CD #BBAEDE

Accessibility & contrast

On white

5.53
#7257BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.80
#7257BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7257BB
5.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7257BB#FFFFFF#000000##FFFFFF
##7257BB1.005.533.805.53
#FFFFFF5.531.0021.001.00
#0000003.8021.001.0021.00
##FFFFFF5.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B6ABE
Deuteranopia (green-blind)
#3167B9
Tritanopia (blue-blind)
#5F6C81
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #7257bb;
/* rgb */ color: rgb(114, 87, 187);
/* oklch */ color: oklch(53.3% 0.151 293.0);
Tailwind
colors: {
  custom: {
    50: '#9f87d0',
    500: '#7257bb',
    950: '#000000',
  },
}
SCSS
$custom: #7257bb;
$custom-light: #9f87d0;
$custom-dark: #000000;
JSON
{
  "hex": "#7257bb",
  "rgb": {
    "r": 114,
    "g": 87,
    "b": 187
  },
  "hsl": {
    "h": 256.2,
    "s": 42.373,
    "l": 53.725
  },
  "oklch": {
    "l": 0.53324,
    "c": 0.15139,
    "h": 293
  },
  "luminance": 0.13982
}

Semantic roles & 50–950 ramp

primary
#7257BB
secondary
#C1CCA2
accent
#D256B1
background
#FAF8FC
surface
#F3EFF9
border
#CDCAD2
text
#0F0B14
muted
#7F7C82

Preview Lab

Preview with #7257BB

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

Preview Lab → · Contrast checker → · Palette generator →

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