#874CCB#874CCB

#874CCB is a mid, vivid violet. Relative luminance 0.146; OKLCH L 54.8% C 0.190 H 301.8°. Best body text is #FFFFFF at 5.35:1 contrast (WCAG AA passes).

Color values

HEX#874CCB
RGBrgb(135, 76, 203)
HSLhsl(268, 55%, 55%)
HSVhsv(268, 63%, 80%)
CMYKcmyk(33.5%, 62.6%, 0%, 20.4%)
CIE-LABlab(45.13, 49.69, -56.81)
CIE-LCHlch(45.13, 75.48, 311.17°)
OKLaboklab(54.84% 0.1001 -0.1612)
OKLCHoklch(54.84% 0.19 301.8)
XYZxyz(23.3531, 14.6315, 58.0822)
Luminance0.1463 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#874CCB #90CB4C
analogous
#4C51CB #874CCB #C64CCB
triadic
#874CCB #CB874C #4CCB87
tetradic
#874CCB #CB4C51 #90CB4C #4CCBC6
square
#874CCB #CB4C51 #90CB4C #4CCBC6
split-complementary
#874CCB #CBC64C #51CB4C
monochromatic
#4B2379 #6931A9 #874CCB #A77BD9 #C7ABE7

Accessibility & contrast

On white

5.35
#874CCB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.93
#874CCB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #874CCB
5.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##874CCB#FFFFFF#000000##FFFFFF
##874CCB1.005.353.935.35
#FFFFFF5.351.0021.001.00
#0000003.9321.001.0021.00
##FFFFFF5.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ACF
Deuteranopia (green-blind)
#216AC8
Tritanopia (blue-blind)
#796784
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #874ccb;
/* rgb */ color: rgb(135, 76, 203);
/* oklch */ color: oklch(54.8% 0.190 301.8);
Tailwind
colors: {
  custom: {
    50: '#ae81dc',
    500: '#874ccb',
    950: '#000000',
  },
}
SCSS
$custom: #874ccb;
$custom-light: #ae81dc;
$custom-dark: #000000;
JSON
{
  "hex": "#874ccb",
  "rgb": {
    "r": 135,
    "g": 76,
    "b": 203
  },
  "hsl": {
    "h": 267.874,
    "s": 54.978,
    "l": 54.706
  },
  "oklch": {
    "l": 0.54839,
    "c": 0.1898,
    "h": 301.8
  },
  "luminance": 0.14632
}

Semantic roles & 50–950 ramp

primary
#874CCB
secondary
#BBD49F
accent
#DE4999
background
#FBF8FD
surface
#F6EFFB
border
#D0CAD4
text
#110B15
muted
#807C83

Preview Lab

Preview with #874CCB

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

Preview Lab → · Contrast checker → · Palette generator →

#874CCB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva