#7251B2#7251B2

#7251B2 is a mid, vivid violet. Relative luminance 0.127; OKLCH L 51.7% C 0.149 H 296.5°. Best body text is #FFFFFF at 5.94:1 contrast (WCAG AA passes).

Color values

HEX#7251B2
RGBrgb(114, 81, 178)
HSLhsl(260, 39%, 51%)
HSVhsv(260, 54%, 70%)
CMYKcmyk(36%, 54.5%, 0%, 30.2%)
CIE-LABlab(42.27, 35.51, -46.96)
CIE-LCHlch(42.27, 58.88, 307.10°)
OKLaboklab(51.71% 0.0664 -0.133)
OKLCHoklch(51.71% 0.149 296.5)
XYZxyz(17.9157, 12.6763, 43.6137)
Luminance0.1268 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7251B2 #91B251
analogous
#5160B2 #7251B2 #A251B2
triadic
#7251B2 #B27251 #51B272
tetradic
#7251B2 #B25160 #91B251 #51B2A2
square
#7251B2 #B25160 #91B251 #51B2A2
split-complementary
#7251B2 #B2A251 #60B251
monochromatic
#3C2A5F #573D89 #7251B2 #947BC5 #B7A6D8

Accessibility & contrast

On white

5.94
#7251B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.54
#7251B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7251B2
5.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7251B2#FFFFFF#000000##FFFFFF
##7251B21.005.943.545.94
#FFFFFF5.941.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2864B5
Deuteranopia (green-blind)
#3163B0
Tritanopia (blue-blind)
#63657A
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #7251b2;
/* rgb */ color: rgb(114, 81, 178);
/* oklch */ color: oklch(51.7% 0.149 296.5);
Tailwind
colors: {
  custom: {
    50: '#9e83c9',
    500: '#7251b2',
    950: '#000000',
  },
}
SCSS
$custom: #7251b2;
$custom-light: #9e83c9;
$custom-dark: #000000;
JSON
{
  "hex": "#7251b2",
  "rgb": {
    "r": 114,
    "g": 81,
    "b": 178
  },
  "hsl": {
    "h": 260.412,
    "s": 38.645,
    "l": 50.784
  },
  "oklch": {
    "l": 0.51713,
    "c": 0.14865,
    "h": 296.5
  },
  "luminance": 0.12677
}

Semantic roles & 50–950 ramp

primary
#7251B2
secondary
#B6C59A
accent
#CF59A7
background
#FAF8FC
surface
#F3EFF8
border
#CDCAD1
text
#0F0A13
muted
#7F7C82

Preview Lab

Preview with #7251B2

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

Preview Lab → · Contrast checker → · Palette generator →

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