#7255CF#7255CF

#7255CF is a mid, vivid violet. Relative luminance 0.146; OKLCH L 54.4% C 0.180 H 290.0°. Best body text is #FFFFFF at 5.36:1 contrast (WCAG AA passes).

Color values

HEX#7255CF
RGBrgb(114, 85, 207)
HSLhsl(254, 56%, 57%)
HSVhsv(254, 59%, 81%)
CMYKcmyk(44.9%, 58.9%, 0%, 18.8%)
CIE-LABlab(45.05, 41.25, -59.35)
CIE-LCHlch(45.05, 72.27, 304.80°)
OKLaboklab(54.36% 0.0617 -0.1694)
OKLCHoklch(54.36% 0.18 290)
XYZxyz(21.4472, 14.5786, 60.7033)
Luminance0.1458 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7255CF #B2CF55
analogous
#5575CF #7255CF #AF55CF
triadic
#7255CF #CF7255 #55CF72
tetradic
#7255CF #CF5575 #B2CF55 #55CFAF
square
#7255CF #CF5575 #B2CF55 #55CFAF
split-complementary
#7255CF #CFAF55 #75CF55
monochromatic
#3C2584 #5233B4 #7255CF #9A85DC #C1B4EA

Accessibility & contrast

On white

5.36
#7255CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.92
#7255CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7255CF
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7255CF#FFFFFF#000000##FFFFFF
##7255CF1.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)
#006DD3
Deuteranopia (green-blind)
#0068CC
Tritanopia (blue-blind)
#56708A
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #7255cf;
/* rgb */ color: rgb(114, 85, 207);
/* oklch */ color: oklch(54.4% 0.180 290.0);
Tailwind
colors: {
  custom: {
    50: '#a186de',
    500: '#7255cf',
    950: '#000000',
  },
}
SCSS
$custom: #7255cf;
$custom-light: #a186de;
$custom-dark: #000000;
JSON
{
  "hex": "#7255cf",
  "rgb": {
    "r": 114,
    "g": 85,
    "b": 207
  },
  "hsl": {
    "h": 254.262,
    "s": 55.963,
    "l": 57.255
  },
  "oklch": {
    "l": 0.54363,
    "c": 0.18027,
    "h": 290
  },
  "luminance": 0.14579
}

Semantic roles & 50–950 ramp

primary
#7255CF
secondary
#CDD9A7
accent
#DF49BB
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#0F0B15
muted
#7F7C83

Preview Lab

Preview with #7255CF

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

Preview Lab → · Contrast checker → · Palette generator →

#7255CF Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva