#7256CC#7256CC

#7256CC is a mid, vivid violet. Relative luminance 0.146; OKLCH L 54.3% C 0.175 H 290.3°. Best body text is #FFFFFF at 5.36:1 contrast (WCAG AA passes).

Color values

HEX#7256CC
RGBrgb(114, 86, 204)
HSLhsl(254, 54%, 57%)
HSVhsv(254, 58%, 80%)
CMYKcmyk(44.1%, 57.8%, 0%, 20%)
CIE-LABlab(45.07, 39.82, -57.59)
CIE-LCHlch(45.07, 70.02, 304.66°)
OKLaboklab(54.31% 0.0607 -0.1642)
OKLCHoklch(54.31% 0.175 290.3)
XYZxyz(21.1633, 14.5919, 58.8165)
Luminance0.1459 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7256CC #B0CC56
analogous
#5675CC #7256CC #AD56CC
triadic
#7256CC #CC7256 #56CC72
tetradic
#7256CC #CC5675 #B0CC56 #56CCAD
square
#7256CC #CC5675 #B0CC56 #56CCAD
split-complementary
#7256CC #CCAD56 #75CC56
monochromatic
#3C2781 #5235B0 #7256CC #9985DA #C0B4E8

Accessibility & contrast

On white

5.36
#7256CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.92
#7256CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7256CC
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7256CC#FFFFFF#000000##FFFFFF
##7256CC1.005.363.925.36
#FFFFFF5.361.0021.001.00
#0000003.9221.001.0021.00
##FFFFFF5.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DD0
Deuteranopia (green-blind)
#0E68C9
Tritanopia (blue-blind)
#577089
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #7256cc;
/* rgb */ color: rgb(114, 86, 204);
/* oklch */ color: oklch(54.3% 0.175 290.3);
Tailwind
colors: {
  custom: {
    50: '#a086dc',
    500: '#7256cc',
    950: '#000000',
  },
}
SCSS
$custom: #7256cc;
$custom-light: #a086dc;
$custom-dark: #000000;
JSON
{
  "hex": "#7256cc",
  "rgb": {
    "r": 114,
    "g": 86,
    "b": 204
  },
  "hsl": {
    "h": 254.237,
    "s": 53.636,
    "l": 56.863
  },
  "oklch": {
    "l": 0.54312,
    "c": 0.17505,
    "h": 290.3
  },
  "luminance": 0.14593
}

Semantic roles & 50–950 ramp

primary
#7256CC
secondary
#CCD7A7
accent
#DD4BBA
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#0F0B15
muted
#7F7C83

Preview Lab

Preview with #7256CC

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

Preview Lab → · Contrast checker → · Palette generator →

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