#7257DF#7257DF

#7257DF is a mid, vivid violet. Relative luminance 0.157; OKLCH L 55.9% C 0.198 H 287.3°. Best body text is #FFFFFF at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#7257DF
RGBrgb(114, 87, 223)
HSLhsl(252, 68%, 61%)
HSVhsv(252, 61%, 87%)
CMYKcmyk(48.9%, 61%, 0%, 12.5%)
CIE-LABlab(46.61, 44.69, -65.97)
CIE-LCHlch(46.61, 79.68, 304.12°)
OKLaboklab(55.86% 0.0588 -0.1888)
OKLCHoklch(55.86% 0.198 287.3)
XYZxyz(23.6630, 15.7204, 71.5852)
Luminance0.1572 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7257DF #C4DF57
analogous
#5780DF #7257DF #B657DF
triadic
#7257DF #DF7257 #57DF72
tetradic
#7257DF #DF5780 #C4DF57 #57DFB6
square
#7257DF #DF5780 #C4DF57 #57DFB6
split-complementary
#7257DF #DFB657 #80DF57
monochromatic
#371E9E #4928D1 #7257DF #9D8AE9 #C8BEF3

Accessibility & contrast

On white

5.07
#7257DF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.14
#7257DF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7257DF
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7257DF#FFFFFF#000000##FFFFFF
##7257DF1.005.074.145.07
#FFFFFF5.071.0021.001.00
#0000004.1421.001.0021.00
##FFFFFF5.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0072E3
Deuteranopia (green-blind)
#006BDC
Tritanopia (blue-blind)
#4C7793
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #7257df;
/* rgb */ color: rgb(114, 87, 223);
/* oklch */ color: oklch(55.9% 0.198 287.3);
Tailwind
colors: {
  custom: {
    50: '#a387ea',
    500: '#7257df',
    950: '#000000',
  },
}
SCSS
$custom: #7257df;
$custom-light: #a387ea;
$custom-dark: #000000;
JSON
{
  "hex": "#7257df",
  "rgb": {
    "r": 114,
    "g": 87,
    "b": 223
  },
  "hsl": {
    "h": 251.912,
    "s": 68,
    "l": 60.784
  },
  "oklch": {
    "l": 0.55855,
    "c": 0.19779,
    "h": 287.3
  },
  "luminance": 0.15722
}

Semantic roles & 50–950 ramp

primary
#7257DF
secondary
#D8E3AF
accent
#D016AB
background
#FAF8FE
surface
#F4F0FD
border
#CECBD5
text
#100B16
muted
#7F7C84

Preview Lab

Preview with #7257DF

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

Preview Lab → · Contrast checker → · Palette generator →

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