#874FBB#874FBB

#874FBB is a mid, vivid violet. Relative luminance 0.143; OKLCH L 54.2% C 0.167 H 305.5°. Best body text is #FFFFFF at 5.43:1 contrast (WCAG AA passes).

Color values

HEX#874FBB
RGBrgb(135, 79, 187)
HSLhsl(271, 44%, 52%)
HSVhsv(271, 58%, 73%)
CMYKcmyk(27.8%, 57.8%, 0%, 26.7%)
CIE-LABlab(44.70, 44.20, -48.21)
CIE-LCHlch(44.70, 65.40, 312.51°)
OKLaboklab(54.21% 0.0968 -0.136)
OKLCHoklch(54.21% 0.167 305.5)
XYZxyz(21.7554, 14.3309, 48.6241)
Luminance0.1433 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#874FBB #83BB4F
analogous
#514FBB #874FBB #BB4FB9
triadic
#874FBB #BB874F #4FBB87
tetradic
#874FBB #BB514F #83BB4F #4FB9BB
square
#874FBB #BB514F #83BB4F #4FB9BB
split-complementary
#874FBB #B9BB4F #4FBB51
monochromatic
#492868 #683994 #874FBB #A57BCC #C3A7DD

Accessibility & contrast

On white

5.43
#874FBB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.87
#874FBB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #874FBB
5.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##874FBB#FFFFFF#000000##FFFFFF
##874FBB1.005.433.875.43
#FFFFFF5.431.0021.001.00
#0000003.8721.001.0021.00
##FFFFFF5.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2468BF
Deuteranopia (green-blind)
#3A6AB8
Tritanopia (blue-blind)
#7E647D
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #874fbb;
/* rgb */ color: rgb(135, 79, 187);
/* oklch */ color: oklch(54.2% 0.167 305.5);
Tailwind
colors: {
  custom: {
    50: '#ad83d0',
    500: '#874fbb',
    950: '#000000',
  },
}
SCSS
$custom: #874fbb;
$custom-light: #ad83d0;
$custom-dark: #000000;
JSON
{
  "hex": "#874fbb",
  "rgb": {
    "r": 135,
    "g": 79,
    "b": 187
  },
  "hsl": {
    "h": 271.111,
    "s": 44.262,
    "l": 52.157
  },
  "oklch": {
    "l": 0.54207,
    "c": 0.16695,
    "h": 305.5
  },
  "luminance": 0.14331
}

Semantic roles & 50–950 ramp

primary
#874FBB
secondary
#B2CA9B
accent
#D45492
background
#FAF8FC
surface
#F5EFF9
border
#CFCAD2
text
#110B14
muted
#807C82

Preview Lab

Preview with #874FBB

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

Preview Lab → · Contrast checker → · Palette generator →

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