#7255EB#7255EB

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

Color values

HEX#7255EB
RGBrgb(114, 85, 235)
HSLhsl(252, 79%, 63%)
HSVhsv(252, 64%, 92%)
CMYKcmyk(51.5%, 63.8%, 0%, 7.8%)
CIE-LABlab(47.07, 49.28, -72.00)
CIE-LCHlch(47.07, 87.25, 304.39°)
OKLaboklab(56.47% 0.0598 -0.2066)
OKLCHoklch(56.47% 0.215 286.2)
XYZxyz(25.1789, 16.0713, 80.3565)
Luminance0.1607 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7255EB #CEEB55
analogous
#5583EB #7255EB #BD55EB
triadic
#7255EB #EB7255 #55EB72
tetradic
#7255EB #EB5583 #CEEB55 #55EBBD
square
#7255EB #EB5583 #CEEB55 #55EBBD
split-complementary
#7255EB #EBBD55 #83EB55
monochromatic
#3315B1 #451EE5 #7255EB #9F8CF1 #CDC3F8

Accessibility & contrast

On white

4.98
#7255EB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.21
#7255EB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7255EB
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7255EB#FFFFFF#000000##FFFFFF
##7255EB1.004.984.214.98
#FFFFFF4.981.0021.001.00
#0000004.2121.001.0021.00
##FFFFFF4.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0074F0
Deuteranopia (green-blind)
#006BE8
Tritanopia (blue-blind)
#437A98
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #7255eb;
/* rgb */ color: rgb(114, 85, 235);
/* oklch */ color: oklch(56.5% 0.215 286.2);
Tailwind
colors: {
  custom: {
    50: '#a486f2',
    500: '#7255eb',
    950: '#000000',
  },
}
SCSS
$custom: #7255eb;
$custom-light: #a486f2;
$custom-dark: #000000;
JSON
{
  "hex": "#7255eb",
  "rgb": {
    "r": 114,
    "g": 85,
    "b": 235
  },
  "hsl": {
    "h": 251.6,
    "s": 78.947,
    "l": 62.745
  },
  "oklch": {
    "l": 0.56468,
    "c": 0.21507,
    "h": 286.2
  },
  "luminance": 0.16073
}

Semantic roles & 50–950 ramp

primary
#7255EB
secondary
#DFE9B3
accent
#DB0AB3
background
#FAF8FE
surface
#F4EFFD
border
#CECAD5
text
#100B17
muted
#7F7C85

Preview Lab

Preview with #7255EB

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

Preview Lab → · Contrast checker → · Palette generator →

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