#7255EF#7255EF

#7255EF is a mid, highly saturated violet. Relative luminance 0.163; OKLCH L 56.8% C 0.220 H 285.7°. Best body text is #FFFFFF at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#7255EF
RGBrgb(114, 85, 239)
HSLhsl(251, 83%, 64%)
HSVhsv(251, 64%, 94%)
CMYKcmyk(52.3%, 64.4%, 0%, 6.3%)
CIE-LABlab(47.37, 50.43, -73.75)
CIE-LCHlch(47.37, 89.35, 304.36°)
OKLaboklab(56.78% 0.0594 -0.2117)
OKLCHoklch(56.78% 0.22 285.7)
XYZxyz(25.7633, 16.3050, 83.4343)
Luminance0.1631 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7255EF #D2EF55
analogous
#5585EF #7255EF #BF55EF
triadic
#7255EF #EF7255 #55EF72
tetradic
#7255EF #EF5585 #D2EF55 #55EFBF
square
#7255EF #EF5585 #D2EF55 #55EFBF
split-complementary
#7255EF #EFBF55 #85EF55
monochromatic
#3111B8 #441DEA #7255EF #A08DF4 #CFC5FA

Accessibility & contrast

On white

4.93
#7255EF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.26
#7255EF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7255EF
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7255EF#FFFFFF#000000##FFFFFF
##7255EF1.004.934.264.93
#FFFFFF4.931.0021.001.00
#0000004.2621.001.0021.00
##FFFFFF4.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0075F4
Deuteranopia (green-blind)
#006CEC
Tritanopia (blue-blind)
#3F7B9B
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #7255ef;
/* rgb */ color: rgb(114, 85, 239);
/* oklch */ color: oklch(56.8% 0.220 285.7);
Tailwind
colors: {
  custom: {
    50: '#a587f5',
    500: '#7255ef',
    950: '#000000',
  },
}
SCSS
$custom: #7255ef;
$custom-light: #a587f5;
$custom-dark: #000000;
JSON
{
  "hex": "#7255ef",
  "rgb": {
    "r": 114,
    "g": 85,
    "b": 239
  },
  "hsl": {
    "h": 251.299,
    "s": 82.796,
    "l": 63.529
  },
  "oklch": {
    "l": 0.56784,
    "c": 0.21992,
    "h": 285.7
  },
  "luminance": 0.16306
}

Semantic roles & 50–950 ramp

primary
#7255EF
secondary
#E1EBB5
accent
#DF06B6
background
#FAF8FF
surface
#F4EFFF
border
#CECAD7
text
#100B17
muted
#7F7C85

Preview Lab

Preview with #7255EF

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

Preview Lab → · Contrast checker → · Palette generator →

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