#7257EA#7257EA

#7257EA is a mid, highly saturated violet. Relative luminance 0.163; OKLCH L 56.7% C 0.211 H 285.9°. Best body text is #FFFFFF at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#7257EA
RGBrgb(114, 87, 234)
HSLhsl(251, 78%, 63%)
HSVhsv(251, 63%, 92%)
CMYKcmyk(51.3%, 62.8%, 0%, 8.2%)
CIE-LABlab(47.41, 47.88, -70.88)
CIE-LCHlch(47.41, 85.54, 304.04°)
OKLaboklab(56.69% 0.058 -0.2033)
OKLCHoklch(56.69% 0.211 285.9)
XYZxyz(25.1945, 16.3330, 79.6510)
Luminance0.1633 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7257EA #CFEA57
analogous
#5786EA #7257EA #BB57EA
triadic
#7257EA #EA7257 #57EA72
tetradic
#7257EA #EA5786 #CFEA57 #57EABB
square
#7257EA #EA5786 #CFEA57 #57EABB
split-complementary
#7257EA #EABB57 #86EA57
monochromatic
#3216B1 #4421E3 #7257EA #A08DF1 #CDC4F8

Accessibility & contrast

On white

4.92
#7257EA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.27
#7257EA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7257EA
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7257EA#FFFFFF#000000##FFFFFF
##7257EA1.004.924.274.92
#FFFFFF4.921.0021.001.00
#0000004.2721.001.0021.00
##FFFFFF4.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0074EF
Deuteranopia (green-blind)
#006CE7
Tritanopia (blue-blind)
#437B99
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #7257ea;
/* rgb */ color: rgb(114, 87, 234);
/* oklch */ color: oklch(56.7% 0.211 285.9);
Tailwind
colors: {
  custom: {
    50: '#a488f2',
    500: '#7257ea',
    950: '#000000',
  },
}
SCSS
$custom: #7257ea;
$custom-light: #a488f2;
$custom-dark: #000000;
JSON
{
  "hex": "#7257ea",
  "rgb": {
    "r": 114,
    "g": 87,
    "b": 234
  },
  "hsl": {
    "h": 251.02,
    "s": 77.778,
    "l": 62.941
  },
  "oklch": {
    "l": 0.56692,
    "c": 0.21142,
    "h": 285.9
  },
  "luminance": 0.16334
}

Semantic roles & 50–950 ramp

primary
#7257EA
secondary
#DFE9B4
accent
#DA0BB4
background
#FAF8FE
surface
#F4F0FD
border
#CECBD5
text
#100B17
muted
#7F7C85

Preview Lab

Preview with #7257EA

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

Preview Lab → · Contrast checker → · Palette generator →

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