#7257DC#7257DC

#7257DC is a mid, vivid violet. Relative luminance 0.156; OKLCH L 55.6% C 0.194 H 287.7°. Best body text is #FFFFFF at 5.11:1 contrast (WCAG AA passes).

Color values

HEX#7257DC
RGBrgb(114, 87, 220)
HSLhsl(252, 66%, 60%)
HSVhsv(252, 60%, 86%)
CMYKcmyk(48.2%, 60.5%, 0%, 13.7%)
CIE-LABlab(46.39, 43.83, -64.61)
CIE-LCHlch(46.39, 78.07, 304.15°)
OKLaboklab(55.63% 0.059 -0.1848)
OKLCHoklch(55.63% 0.194 287.7)
XYZxyz(23.2621, 15.5601, 69.4740)
Luminance0.1556 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7257DC #C1DC57
analogous
#577FDC #7257DC #B457DC
triadic
#7257DC #DC7257 #57DC72
tetradic
#7257DC #DC577F #C1DC57 #57DCB4
square
#7257DC #DC577F #C1DC57 #57DCB4
split-complementary
#7257DC #DCB457 #7FDC57
monochromatic
#382099 #4B2ACB #7257DC #9D8AE7 #C7BCF1

Accessibility & contrast

On white

5.11
#7257DC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.11
#7257DC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7257DC
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7257DC#FFFFFF#000000##FFFFFF
##7257DC1.005.114.115.11
#FFFFFF5.111.0021.001.00
#0000004.1121.001.0021.00
##FFFFFF5.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0071E0
Deuteranopia (green-blind)
#006AD9
Tritanopia (blue-blind)
#4E7691
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #7257dc;
/* rgb */ color: rgb(114, 87, 220);
/* oklch */ color: oklch(55.6% 0.194 287.7);
Tailwind
colors: {
  custom: {
    50: '#a287e8',
    500: '#7257dc',
    950: '#000000',
  },
}
SCSS
$custom: #7257dc;
$custom-light: #a287e8;
$custom-dark: #000000;
JSON
{
  "hex": "#7257dc",
  "rgb": {
    "r": 114,
    "g": 87,
    "b": 220
  },
  "hsl": {
    "h": 252.18,
    "s": 65.517,
    "l": 60.196
  },
  "oklch": {
    "l": 0.55631,
    "c": 0.19403,
    "h": 287.7
  },
  "luminance": 0.15561
}

Semantic roles & 50–950 ramp

primary
#7257DC
secondary
#D7E1AE
accent
#CD18A9
background
#FAF8FE
surface
#F4F0FD
border
#CECBD5
text
#100B16
muted
#7F7C84

Preview Lab

Preview with #7257DC

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

Preview Lab → · Contrast checker → · Palette generator →

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