#7256D4#7256D4

#7256D4 is a mid, vivid violet. Relative luminance 0.150; OKLCH L 54.9% C 0.185 H 289.0°. Best body text is #FFFFFF at 5.25:1 contrast (WCAG AA passes).

Color values

HEX#7256D4
RGBrgb(114, 86, 212)
HSLhsl(253, 59%, 58%)
HSVhsv(253, 59%, 83%)
CMYKcmyk(46.2%, 59.4%, 0%, 16.9%)
CIE-LABlab(45.61, 42.10, -61.30)
CIE-LCHlch(45.61, 74.37, 304.48°)
OKLaboklab(54.89% 0.0605 -0.1751)
OKLCHoklch(54.89% 0.185 289)
XYZxyz(22.1475, 14.9856, 64.0001)
Luminance0.1499 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7256D4 #B8D456
analogous
#5679D4 #7256D4 #B156D4
triadic
#7256D4 #D47256 #56D472
tetradic
#7256D4 #D45679 #B8D456 #56D4B1
square
#7256D4 #D45679 #B8D456 #56D4B1
split-complementary
#7256D4 #D4B156 #79D456
monochromatic
#3B248C #4F30BD #7256D4 #9B87E0 #C3B8ED

Accessibility & contrast

On white

5.25
#7256D4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.00
#7256D4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7256D4
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7256D4#FFFFFF#000000##FFFFFF
##7256D41.005.254.005.25
#FFFFFF5.251.0021.001.00
#0000004.0021.001.0021.00
##FFFFFF5.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FD8
Deuteranopia (green-blind)
#0069D1
Tritanopia (blue-blind)
#53738D
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #7256d4;
/* rgb */ color: rgb(114, 86, 212);
/* oklch */ color: oklch(54.9% 0.185 289.0);
Tailwind
colors: {
  custom: {
    50: '#a187e2',
    500: '#7256d4',
    950: '#000000',
  },
}
SCSS
$custom: #7256d4;
$custom-light: #a187e2;
$custom-dark: #000000;
JSON
{
  "hex": "#7256d4",
  "rgb": {
    "r": 114,
    "g": 86,
    "b": 212
  },
  "hsl": {
    "h": 253.333,
    "s": 59.434,
    "l": 58.431
  },
  "oklch": {
    "l": 0.54885,
    "c": 0.18526,
    "h": 289
  },
  "luminance": 0.14986
}

Semantic roles & 50–950 ramp

primary
#7256D4
secondary
#D1DCAA
accent
#E345C0
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100B15
muted
#7F7C83

Preview Lab

Preview with #7256D4

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

Preview Lab → · Contrast checker → · Palette generator →

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