#7255EC#7255EC

#7255EC is a mid, highly saturated violet. Relative luminance 0.161; OKLCH L 56.5% C 0.216 H 286.0°. Best body text is #FFFFFF at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#7255EC
RGBrgb(114, 85, 236)
HSLhsl(252, 80%, 63%)
HSVhsv(252, 64%, 93%)
CMYKcmyk(51.7%, 64%, 0%, 7.5%)
CIE-LABlab(47.14, 49.57, -72.44)
CIE-LCHlch(47.14, 87.77, 304.38°)
OKLaboklab(56.55% 0.0597 -0.2079)
OKLCHoklch(56.55% 0.216 286)
XYZxyz(25.3237, 16.1292, 81.1195)
Luminance0.1613 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7255EC #CFEC55
analogous
#5583EC #7255EC #BD55EC
triadic
#7255EC #EC7255 #55EC72
tetradic
#7255EC #EC5583 #CFEC55 #55ECBD
square
#7255EC #EC5583 #CFEC55 #55ECBD
split-complementary
#7255EC #ECBD55 #83EC55
monochromatic
#3214B3 #441EE6 #7255EC #A08CF2 #CDC3F8

Accessibility & contrast

On white

4.97
#7255EC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.23
#7255EC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7255EC
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7255EC#FFFFFF#000000##FFFFFF
##7255EC1.004.974.234.97
#FFFFFF4.971.0021.001.00
#0000004.2321.001.0021.00
##FFFFFF4.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0074F1
Deuteranopia (green-blind)
#006BE9
Tritanopia (blue-blind)
#427A99
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #7255ec;
/* rgb */ color: rgb(114, 85, 236);
/* oklch */ color: oklch(56.5% 0.216 286.0);
Tailwind
colors: {
  custom: {
    50: '#a486f3',
    500: '#7255ec',
    950: '#000000',
  },
}
SCSS
$custom: #7255ec;
$custom-light: #a486f3;
$custom-dark: #000000;
JSON
{
  "hex": "#7255ec",
  "rgb": {
    "r": 114,
    "g": 85,
    "b": 236
  },
  "hsl": {
    "h": 251.523,
    "s": 79.894,
    "l": 62.941
  },
  "oklch": {
    "l": 0.56547,
    "c": 0.21628,
    "h": 286
  },
  "luminance": 0.16131
}

Semantic roles & 50–950 ramp

primary
#7255EC
secondary
#DFEAB3
accent
#DC09B4
background
#FAF8FF
surface
#F4EFFE
border
#CECAD6
text
#100B17
muted
#7F7C85

Preview Lab

Preview with #7255EC

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

Preview Lab → · Contrast checker → · Palette generator →

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