#7254BC#7254BC

#7254BC is a mid, vivid violet. Relative luminance 0.135; OKLCH L 52.9% C 0.157 H 293.6°. Best body text is #FFFFFF at 5.66:1 contrast (WCAG AA passes).

Color values

HEX#7254BC
RGBrgb(114, 84, 188)
HSLhsl(257, 44%, 53%)
HSVhsv(257, 55%, 74%)
CMYKcmyk(39.4%, 55.3%, 0%, 26.3%)
CIE-LABlab(43.58, 36.49, -50.72)
CIE-LCHlch(43.58, 62.49, 305.73°)
OKLaboklab(52.88% 0.063 -0.144)
OKLCHoklch(52.88% 0.157 293.6)
XYZxyz(19.1844, 13.5484, 49.1715)
Luminance0.1355 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7254BC #9EBC54
analogous
#546ABC #7254BC #A654BC
triadic
#7254BC #BC7254 #54BC72
tetradic
#7254BC #BC546A #9EBC54 #54BCA6
square
#7254BC #BC546A #9EBC54 #54BCA6
split-complementary
#7254BC #BCA654 #6ABC54
monochromatic
#3D2A6B #563B97 #7254BC #9680CD #BBACDE

Accessibility & contrast

On white

5.66
#7254BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.71
#7254BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7254BC
5.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7254BC#FFFFFF#000000##FFFFFF
##7254BC1.005.663.715.66
#FFFFFF5.661.0021.001.00
#0000003.7121.001.0021.00
##FFFFFF5.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2268C0
Deuteranopia (green-blind)
#2A65BA
Tritanopia (blue-blind)
#5F6A80
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #7254bc;
/* rgb */ color: rgb(114, 84, 188);
/* oklch */ color: oklch(52.9% 0.157 293.6);
Tailwind
colors: {
  custom: {
    50: '#9f85d1',
    500: '#7254bc',
    950: '#000000',
  },
}
SCSS
$custom: #7254bc;
$custom-light: #9f85d1;
$custom-dark: #000000;
JSON
{
  "hex": "#7254bc",
  "rgb": {
    "r": 114,
    "g": 84,
    "b": 188
  },
  "hsl": {
    "h": 257.308,
    "s": 43.697,
    "l": 53.333
  },
  "oklch": {
    "l": 0.52879,
    "c": 0.15718,
    "h": 293.6
  },
  "luminance": 0.13549
}

Semantic roles & 50–950 ramp

primary
#7254BC
secondary
#BFCCA0
accent
#D354AF
background
#FAF8FC
surface
#F4EFF9
border
#CECAD2
text
#0F0B14
muted
#7F7C82

Preview Lab

Preview with #7254BC

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

Preview Lab → · Contrast checker → · Palette generator →

#7254BC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva