#7255D4#7255D4

#7255D4 is a mid, vivid violet. Relative luminance 0.148; OKLCH L 54.7% C 0.187 H 289.3°. Best body text is #FFFFFF at 5.30:1 contrast (WCAG AA passes).

Color values

HEX#7255D4
RGBrgb(114, 85, 212)
HSLhsl(254, 60%, 58%)
HSVhsv(254, 60%, 83%)
CMYKcmyk(46.2%, 59.9%, 0%, 16.9%)
CIE-LABlab(45.40, 42.67, -61.66)
CIE-LCHlch(45.40, 74.98, 304.69°)
OKLaboklab(54.73% 0.0616 -0.1762)
OKLCHoklch(54.73% 0.187 289.3)
XYZxyz(22.0682, 14.8270, 63.9737)
Luminance0.1483 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7255D4 #B7D455
analogous
#5577D4 #7255D4 #B155D4
triadic
#7255D4 #D47255 #55D472
tetradic
#7255D4 #D45577 #B7D455 #55D4B1
square
#7255D4 #D45577 #B7D455 #55D4B1
split-complementary
#7255D4 #D4B155 #77D455
monochromatic
#3B238B #5030BC #7255D4 #9B86E0 #C3B7ED

Accessibility & contrast

On white

5.30
#7255D4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.97
#7255D4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7255D4
5.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7255D4#FFFFFF#000000##FFFFFF
##7255D41.005.303.975.30
#FFFFFF5.301.0021.001.00
#0000003.9721.001.0021.00
##FFFFFF5.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ED8
Deuteranopia (green-blind)
#0068D1
Tritanopia (blue-blind)
#53728C
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #7255d4;
/* rgb */ color: rgb(114, 85, 212);
/* oklch */ color: oklch(54.7% 0.187 289.3);
Tailwind
colors: {
  custom: {
    50: '#a186e2',
    500: '#7255d4',
    950: '#000000',
  },
}
SCSS
$custom: #7255d4;
$custom-light: #a186e2;
$custom-dark: #000000;
JSON
{
  "hex": "#7255d4",
  "rgb": {
    "r": 114,
    "g": 85,
    "b": 212
  },
  "hsl": {
    "h": 253.701,
    "s": 59.624,
    "l": 58.235
  },
  "oklch": {
    "l": 0.54725,
    "c": 0.1866,
    "h": 289.3
  },
  "luminance": 0.14828
}

Semantic roles & 50–950 ramp

primary
#7255D4
secondary
#D0DCA9
accent
#E345BF
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100B15
muted
#7F7C83

Preview Lab

Preview with #7255D4

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

Preview Lab → · Contrast checker → · Palette generator →

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