#7256CB#7256CB

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

Color values

HEX#7256CB
RGBrgb(114, 86, 203)
HSLhsl(254, 53%, 57%)
HSVhsv(254, 58%, 80%)
CMYKcmyk(43.8%, 57.6%, 0%, 20.4%)
CIE-LABlab(45.00, 39.54, -57.12)
CIE-LCHlch(45.00, 69.47, 304.69°)
OKLaboklab(54.24% 0.0607 -0.1628)
OKLCHoklch(54.24% 0.174 290.4)
XYZxyz(21.0437, 14.5441, 58.1868)
Luminance0.1454 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7256CB #AFCB56
analogous
#5675CB #7256CB #AD56CB
triadic
#7256CB #CB7256 #56CB72
tetradic
#7256CB #CB5675 #AFCB56 #56CBAD
square
#7256CB #CB5675 #AFCB56 #56CBAD
split-complementary
#7256CB #CBAD56 #75CB56
monochromatic
#3C277F #5236AE #7256CB #9985D9 #C0B4E8

Accessibility & contrast

On white

5.37
#7256CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.91
#7256CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7256CB
5.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7256CB#FFFFFF#000000##FFFFFF
##7256CB1.005.373.915.37
#FFFFFF5.371.0021.001.00
#0000003.9121.001.0021.00
##FFFFFF5.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#046DCF
Deuteranopia (green-blind)
#1168C8
Tritanopia (blue-blind)
#587088
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #7256cb;
/* rgb */ color: rgb(114, 86, 203);
/* oklch */ color: oklch(54.2% 0.174 290.4);
Tailwind
colors: {
  custom: {
    50: '#a086dc',
    500: '#7256cb',
    950: '#000000',
  },
}
SCSS
$custom: #7256cb;
$custom-light: #a086dc;
$custom-dark: #000000;
JSON
{
  "hex": "#7256cb",
  "rgb": {
    "r": 114,
    "g": 86,
    "b": 203
  },
  "hsl": {
    "h": 254.359,
    "s": 52.941,
    "l": 56.667
  },
  "oklch": {
    "l": 0.54242,
    "c": 0.17377,
    "h": 290.4
  },
  "luminance": 0.14545
}

Semantic roles & 50–950 ramp

primary
#7256CB
secondary
#CBD6A6
accent
#DC4BBA
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#0F0B15
muted
#7F7C83

Preview Lab

Preview with #7256CB

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

Preview Lab → · Contrast checker → · Palette generator →

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