#7271CF#7271CF

#7271CF is a mid, vivid blue. Relative luminance 0.199; OKLCH L 59.3% C 0.141 H 281.7°. Best body text is #000000 at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#7271CF
RGBrgb(114, 113, 207)
HSLhsl(241, 49%, 63%)
HSVhsv(241, 45%, 81%)
CMYKcmyk(44.9%, 45.4%, 0%, 18.8%)
CIE-LABlab(51.71, 24.61, -48.65)
CIE-LCHlch(51.71, 54.53, 296.83°)
OKLaboklab(59.34% 0.0286 -0.1378)
OKLCHoklch(59.34% 0.141 281.7)
XYZxyz(24.1037, 19.8915, 61.5888)
Luminance0.1989 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7271CF #CECF71
analogous
#719FCF #7271CF #A171CF
triadic
#7271CF #CF7271 #71CF72
tetradic
#7271CF #CF719F #CECF71 #71CFA1
square
#7271CF #CF719F #CECF71 #71CFA1
split-complementary
#7271CF #CFA171 #9FCF71
monochromatic
#333294 #4543C0 #7271CF #9F9FDE #CDCCEE

Accessibility & contrast

On white

4.22
#7271CF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.98
#7271CF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7271CF
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7271CF#FFFFFF#000000##000000
##7271CF1.004.224.984.98
#FFFFFF4.221.0021.0021.00
#0000004.9821.001.001.00
##0000004.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#4C7FD2
Deuteranopia (green-blind)
#4678CD
Tritanopia (blue-blind)
#538496
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #7271cf;
/* rgb */ color: rgb(114, 113, 207);
/* oklch */ color: oklch(59.3% 0.141 281.7);
Tailwind
colors: {
  custom: {
    50: '#9f99de',
    500: '#7271cf',
    950: '#000000',
  },
}
SCSS
$custom: #7271cf;
$custom-light: #9f99de;
$custom-dark: #000000;
JSON
{
  "hex": "#7271cf",
  "rgb": {
    "r": 114,
    "g": 113,
    "b": 207
  },
  "hsl": {
    "h": 240.638,
    "s": 49.474,
    "l": 62.745
  },
  "oklch": {
    "l": 0.59335,
    "c": 0.14078,
    "h": 281.7
  },
  "luminance": 0.19893
}

Semantic roles & 50–950 ramp

primary
#7271CF
secondary
#DFDFBD
accent
#BD29BB
background
#FAF9FD
surface
#F4F2FB
border
#CECCD4
text
#0F0E15
muted
#7F7E83

Preview Lab

Preview with #7271CF

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

Preview Lab → · Contrast checker → · Palette generator →

#7271CF Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva