#7257CC#7257CC

#7257CC is a mid, vivid violet. Relative luminance 0.148; OKLCH L 54.5% C 0.174 H 290.0°. Best body text is #FFFFFF at 5.32:1 contrast (WCAG AA passes).

Color values

HEX#7257CC
RGBrgb(114, 87, 204)
HSLhsl(254, 53%, 57%)
HSVhsv(254, 57%, 80%)
CMYKcmyk(44.1%, 57.4%, 0%, 20%)
CIE-LABlab(45.29, 39.24, -57.23)
CIE-LCHlch(45.29, 69.39, 304.44°)
OKLaboklab(54.48% 0.0595 -0.1631)
OKLCHoklch(54.48% 0.174 290)
XYZxyz(21.2437, 14.7527, 58.8433)
Luminance0.1475 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7257CC #B1CC57
analogous
#5777CC #7257CC #AD57CC
triadic
#7257CC #CC7257 #57CC72
tetradic
#7257CC #CC5777 #B1CC57 #57CCAD
square
#7257CC #CC5777 #B1CC57 #57CCAD
split-complementary
#7257CC #CCAD57 #77CC57
monochromatic
#3C2781 #5236B0 #7257CC #9986DA #C1B5E9

Accessibility & contrast

On white

5.32
#7257CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.95
#7257CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7257CC
5.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7257CC#FFFFFF#000000##FFFFFF
##7257CC1.005.323.955.32
#FFFFFF5.321.0021.001.00
#0000003.9521.001.0021.00
##FFFFFF5.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#076DD0
Deuteranopia (green-blind)
#1269C9
Tritanopia (blue-blind)
#577189
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #7257cc;
/* rgb */ color: rgb(114, 87, 204);
/* oklch */ color: oklch(54.5% 0.174 290.0);
Tailwind
colors: {
  custom: {
    50: '#a087dc',
    500: '#7257cc',
    950: '#000000',
  },
}
SCSS
$custom: #7257cc;
$custom-light: #a087dc;
$custom-dark: #000000;
JSON
{
  "hex": "#7257cc",
  "rgb": {
    "r": 114,
    "g": 87,
    "b": 204
  },
  "hsl": {
    "h": 253.846,
    "s": 53.425,
    "l": 57.059
  },
  "oklch": {
    "l": 0.54477,
    "c": 0.17366,
    "h": 290
  },
  "luminance": 0.14753
}

Semantic roles & 50–950 ramp

primary
#7257CC
secondary
#CCD7A8
accent
#DD4BBB
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#0F0B15
muted
#7F7C83

Preview Lab

Preview with #7257CC

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

Preview Lab → · Contrast checker → · Palette generator →

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