#7256CA#7256CA

#7256CA is a mid, vivid violet. Relative luminance 0.145; OKLCH L 54.2% C 0.172 H 290.6°. Best body text is #FFFFFF at 5.39:1 contrast (WCAG AA passes).

Color values

HEX#7256CA
RGBrgb(114, 86, 202)
HSLhsl(254, 52%, 56%)
HSVhsv(254, 57%, 79%)
CMYKcmyk(43.6%, 57.4%, 0%, 20.8%)
CIE-LABlab(44.94, 39.25, -56.65)
CIE-LCHlch(44.94, 68.92, 304.72°)
OKLaboklab(54.17% 0.0607 -0.1614)
OKLCHoklch(54.17% 0.172 290.6)
XYZxyz(20.9249, 14.4966, 57.5613)
Luminance0.1450 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7256CA #AECA56
analogous
#5674CA #7256CA #AC56CA
triadic
#7256CA #CA7256 #56CA72
tetradic
#7256CA #CA5674 #AECA56 #56CAAC
square
#7256CA #CA5674 #AECA56 #56CAAC
split-complementary
#7256CA #CAAC56 #74CA56
monochromatic
#3C287E #5336AD #7256CA #9985D9 #C0B3E7

Accessibility & contrast

On white

5.39
#7256CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.90
#7256CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7256CA
5.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7256CA#FFFFFF#000000##FFFFFF
##7256CA1.005.393.905.39
#FFFFFF5.391.0021.001.00
#0000003.9021.001.0021.00
##FFFFFF5.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#086CCE
Deuteranopia (green-blind)
#1568C7
Tritanopia (blue-blind)
#587088
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #7256ca;
/* rgb */ color: rgb(114, 86, 202);
/* oklch */ color: oklch(54.2% 0.172 290.6);
Tailwind
colors: {
  custom: {
    50: '#a086db',
    500: '#7256ca',
    950: '#000000',
  },
}
SCSS
$custom: #7256ca;
$custom-light: #a086db;
$custom-dark: #000000;
JSON
{
  "hex": "#7256ca",
  "rgb": {
    "r": 114,
    "g": 86,
    "b": 202
  },
  "hsl": {
    "h": 254.483,
    "s": 52.252,
    "l": 56.471
  },
  "oklch": {
    "l": 0.54172,
    "c": 0.17248,
    "h": 290.6
  },
  "luminance": 0.14497
}

Semantic roles & 50–950 ramp

primary
#7256CA
secondary
#CAD6A6
accent
#DC4CB9
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#0F0B15
muted
#7F7C83

Preview Lab

Preview with #7256CA

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

Preview Lab → · Contrast checker → · Palette generator →

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