#7151CB#7151CB

#7151CB is a mid, vivid violet. Relative luminance 0.137; OKLCH L 53.3% C 0.181 H 291.1°. Best body text is #FFFFFF at 5.61:1 contrast (WCAG AA passes).

Color values

HEX#7151CB
RGBrgb(113, 81, 203)
HSLhsl(256, 54%, 56%)
HSVhsv(256, 60%, 80%)
CMYKcmyk(44.3%, 60.1%, 0%, 20.4%)
CIE-LABlab(43.81, 42.20, -59.06)
CIE-LCHlch(43.81, 72.58, 305.55°)
OKLaboklab(53.34% 0.0651 -0.1685)
OKLCHoklch(53.34% 0.181 291.1)
XYZxyz(20.5290, 13.7067, 58.0523)
Luminance0.1371 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7151CB #ABCB51
analogous
#516ECB #7151CB #AE51CB
triadic
#7151CB #CB7151 #51CB71
tetradic
#7151CB #CB516E #ABCB51 #51CBAE
square
#7151CB #CB516E #ABCB51 #51CBAE
split-complementary
#7151CB #CBAE51 #6ECB51
monochromatic
#3C257C #5333AC #7151CB #9780D9 #BEAFE7

Accessibility & contrast

On white

5.61
#7151CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.74
#7151CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7151CB
5.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7151CB#FFFFFF#000000##FFFFFF
##7151CB1.005.613.745.61
#FFFFFF5.611.0021.001.00
#0000003.7421.001.0021.00
##FFFFFF5.611.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7151cb;
/* rgb */ color: rgb(113, 81, 203);
/* oklch */ color: oklch(53.3% 0.181 291.1);
Tailwind
colors: {
  custom: {
    50: '#a083dc',
    500: '#7151cb',
    950: '#000000',
  },
}
SCSS
$custom: #7151cb;
$custom-light: #a083dc;
$custom-dark: #000000;
JSON
{
  "hex": "#7151cb",
  "rgb": {
    "r": 113,
    "g": 81,
    "b": 203
  },
  "hsl": {
    "h": 255.738,
    "s": 53.982,
    "l": 55.686
  },
  "oklch": {
    "l": 0.53343,
    "c": 0.18067,
    "h": 291.1
  },
  "luminance": 0.13707
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7151CB

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

Preview Lab → · Contrast checker → · Palette generator →

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