#7251CB#7251CB

#7251CB is a mid, vivid violet. Relative luminance 0.138; OKLCH L 53.4% C 0.181 H 291.6°. Best body text is #FFFFFF at 5.59:1 contrast (WCAG AA passes).

Color values

HEX#7251CB
RGBrgb(114, 81, 203)
HSLhsl(256, 54%, 56%)
HSVhsv(256, 60%, 80%)
CMYKcmyk(43.8%, 60.1%, 0%, 20.4%)
CIE-LABlab(43.91, 42.41, -58.89)
CIE-LCHlch(43.91, 72.57, 305.76°)
OKLaboklab(53.44% 0.0664 -0.168)
OKLCHoklch(53.44% 0.181 291.6)
XYZxyz(20.6584, 13.7734, 58.0584)
Luminance0.1377 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7251CB #AACB51
analogous
#516DCB #7251CB #AF51CB
triadic
#7251CB #CB7251 #51CB72
tetradic
#7251CB #CB516D #AACB51 #51CBAF
square
#7251CB #CB516D #AACB51 #51CBAF
split-complementary
#7251CB #CBAF51 #6DCB51
monochromatic
#3D257C #5433AC #7251CB #9880D9 #BEAFE7

Accessibility & contrast

On white

5.59
#7251CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.75
#7251CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7251CB
5.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7251CB#FFFFFF#000000##FFFFFF
##7251CB1.005.593.755.59
#FFFFFF5.591.0021.001.00
#0000003.7521.001.0021.00
##FFFFFF5.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ACF
Deuteranopia (green-blind)
#0065C8
Tritanopia (blue-blind)
#586D86
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #7251cb;
/* rgb */ color: rgb(114, 81, 203);
/* oklch */ color: oklch(53.4% 0.181 291.6);
Tailwind
colors: {
  custom: {
    50: '#a183dc',
    500: '#7251cb',
    950: '#000000',
  },
}
SCSS
$custom: #7251cb;
$custom-light: #a183dc;
$custom-dark: #000000;
JSON
{
  "hex": "#7251cb",
  "rgb": {
    "r": 114,
    "g": 81,
    "b": 203
  },
  "hsl": {
    "h": 256.23,
    "s": 53.982,
    "l": 55.686
  },
  "oklch": {
    "l": 0.53437,
    "c": 0.18068,
    "h": 291.6
  },
  "luminance": 0.13774
}

Semantic roles & 50–950 ramp

primary
#7251CB
secondary
#C8D5A3
accent
#DD4AB6
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#0F0B15
muted
#7F7C83

Preview Lab

Preview with #7251CB

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

Preview Lab → · Contrast checker → · Palette generator →

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