#7257F2#7257F2

#7257F2 is a mid, highly saturated violet. Relative luminance 0.168; OKLCH L 57.3% C 0.221 H 285.0°. Best body text is #FFFFFF at 4.82:1 contrast (WCAG AA passes).

Color values

HEX#7257F2
RGBrgb(114, 87, 242)
HSLhsl(250, 86%, 65%)
HSVhsv(250, 64%, 95%)
CMYKcmyk(52.9%, 64%, 0%, 5.1%)
CIE-LABlab(48.01, 50.20, -74.40)
CIE-LCHlch(48.01, 89.75, 304.01°)
OKLaboklab(57.32% 0.0573 -0.2136)
OKLCHoklch(57.32% 0.221 285)
XYZxyz(26.3698, 16.8032, 85.8410)
Luminance0.1681 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7257F2 #D7F257
analogous
#5789F2 #7257F2 #C057F2
triadic
#7257F2 #F27257 #57F272
tetradic
#7257F2 #F25789 #D7F257 #57F2C0
square
#7257F2 #F25789 #D7F257 #57F2C0
split-complementary
#7257F2 #F2C057 #89F257
monochromatic
#2E0FC0 #421EEE #7257F2 #A290F6 #D1C9FB

Accessibility & contrast

On white

4.82
#7257F2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.36
#7257F2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7257F2
4.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7257F2#FFFFFF#000000##FFFFFF
##7257F21.004.824.364.82
#FFFFFF4.821.0021.001.00
#0000004.3621.001.0021.00
##FFFFFF4.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0076F7
Deuteranopia (green-blind)
#006DEF
Tritanopia (blue-blind)
#3C7D9D
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #7257f2;
/* rgb */ color: rgb(114, 87, 242);
/* oklch */ color: oklch(57.3% 0.221 285.0);
Tailwind
colors: {
  custom: {
    50: '#a588f7',
    500: '#7257f2',
    950: '#000000',
  },
}
SCSS
$custom: #7257f2;
$custom-light: #a588f7;
$custom-dark: #000000;
JSON
{
  "hex": "#7257f2",
  "rgb": {
    "r": 114,
    "g": 87,
    "b": 242
  },
  "hsl": {
    "h": 250.452,
    "s": 85.635,
    "l": 64.51
  },
  "oklch": {
    "l": 0.57318,
    "c": 0.22116,
    "h": 285
  },
  "luminance": 0.16805
}

Semantic roles & 50–950 ramp

primary
#7257F2
secondary
#E4EDB8
accent
#E203BB
background
#FAF8FF
surface
#F4F0FF
border
#CECBD7
text
#100B17
muted
#7F7C85

Preview Lab

Preview with #7257F2

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

Preview Lab → · Contrast checker → · Palette generator →

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