#7255CB#7255CB

#7255CB is a mid, vivid violet. Relative luminance 0.144; OKLCH L 54.1% C 0.175 H 290.7°. Best body text is #FFFFFF at 5.42:1 contrast (WCAG AA passes).

Color values

HEX#7255CB
RGBrgb(114, 85, 203)
HSLhsl(255, 53%, 56%)
HSVhsv(255, 58%, 80%)
CMYKcmyk(43.8%, 58.1%, 0%, 20.4%)
CIE-LABlab(44.78, 40.11, -57.48)
CIE-LCHlch(44.78, 70.09, 304.91°)
OKLaboklab(54.08% 0.0618 -0.1639)
OKLCHoklch(54.08% 0.175 290.7)
XYZxyz(20.9644, 14.3855, 58.1604)
Luminance0.1439 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7255CB #AECB55
analogous
#5573CB #7255CB #AD55CB
triadic
#7255CB #CB7255 #55CB72
tetradic
#7255CB #CB5573 #AECB55 #55CBAD
square
#7255CB #CB5573 #AECB55 #55CBAD
split-complementary
#7255CB #CBAD55 #73CB55
monochromatic
#3C277F #5335AE #7255CB #9984D9 #C0B3E8

Accessibility & contrast

On white

5.42
#7255CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.88
#7255CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7255CB
5.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7255CB#FFFFFF#000000##FFFFFF
##7255CB1.005.423.885.42
#FFFFFF5.421.0021.001.00
#0000003.8821.001.0021.00
##FFFFFF5.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CCF
Deuteranopia (green-blind)
#0D67C8
Tritanopia (blue-blind)
#586F88
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #7255cb;
/* rgb */ color: rgb(114, 85, 203);
/* oklch */ color: oklch(54.1% 0.175 290.7);
Tailwind
colors: {
  custom: {
    50: '#a086dc',
    500: '#7255cb',
    950: '#000000',
  },
}
SCSS
$custom: #7255cb;
$custom-light: #a086dc;
$custom-dark: #000000;
JSON
{
  "hex": "#7255cb",
  "rgb": {
    "r": 114,
    "g": 85,
    "b": 203
  },
  "hsl": {
    "h": 254.746,
    "s": 53.153,
    "l": 56.471
  },
  "oklch": {
    "l": 0.54078,
    "c": 0.17516,
    "h": 290.7
  },
  "luminance": 0.14386
}

Semantic roles & 50–950 ramp

primary
#7255CB
secondary
#CAD6A6
accent
#DD4BB9
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#0F0B15
muted
#7F7C83

Preview Lab

Preview with #7255CB

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

Preview Lab → · Contrast checker → · Palette generator →

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