#7256F2#7256F2

#7256F2 is a mid, highly saturated violet. Relative luminance 0.166; OKLCH L 57.2% C 0.222 H 285.2°. Best body text is #FFFFFF at 4.85:1 contrast (WCAG AA passes).

Color values

HEX#7256F2
RGBrgb(114, 86, 242)
HSLhsl(251, 86%, 64%)
HSVhsv(251, 64%, 95%)
CMYKcmyk(52.9%, 64.5%, 0%, 5.1%)
CIE-LABlab(47.81, 50.75, -74.73)
CIE-LCHlch(47.81, 90.33, 304.18°)
OKLaboklab(57.17% 0.0582 -0.2146)
OKLCHoklch(57.17% 0.222 285.2)
XYZxyz(26.2894, 16.6424, 85.8142)
Luminance0.1664 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7256F2 #D6F256
analogous
#5688F2 #7256F2 #C056F2
triadic
#7256F2 #F27256 #56F272
tetradic
#7256F2 #F25688 #D6F256 #56F2C0
square
#7256F2 #F25688 #D6F256 #56F2C0
split-complementary
#7256F2 #F2C056 #88F256
monochromatic
#2E0FBF #431DEE #7256F2 #A18FF6 #D1C8FB

Accessibility & contrast

On white

4.85
#7256F2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.33
#7256F2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7256F2
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7256F2#FFFFFF#000000##FFFFFF
##7256F21.004.854.334.85
#FFFFFF4.851.0021.001.00
#0000004.3321.001.0021.00
##FFFFFF4.851.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7256f2;
/* rgb */ color: rgb(114, 86, 242);
/* oklch */ color: oklch(57.2% 0.222 285.2);
Tailwind
colors: {
  custom: {
    50: '#a587f7',
    500: '#7256f2',
    950: '#000000',
  },
}
SCSS
$custom: #7256f2;
$custom-light: #a587f7;
$custom-dark: #000000;
JSON
{
  "hex": "#7256f2",
  "rgb": {
    "r": 114,
    "g": 86,
    "b": 242
  },
  "hsl": {
    "h": 250.769,
    "s": 85.714,
    "l": 64.314
  },
  "oklch": {
    "l": 0.57169,
    "c": 0.22234,
    "h": 285.2
  },
  "luminance": 0.16644
}

Semantic roles & 50–950 ramp

primary
#7256F2
secondary
#E3EDB7
accent
#E203BA
background
#FAF8FF
surface
#F4F0FF
border
#CECBD7
text
#100B17
muted
#7F7C85

Preview Lab

Preview with #7256F2

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

Preview Lab → · Contrast checker → · Palette generator →

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