#7271F2#7271F2

#7271F2 is a mid, vivid blue. Relative luminance 0.218; OKLCH L 61.6% C 0.189 H 279.7°. Best body text is #000000 at 5.36:1 contrast (WCAG AA passes).

Color values

HEX#7271F2
RGBrgb(114, 113, 242)
HSLhsl(240, 83%, 70%)
HSVhsv(240, 53%, 95%)
CMYKcmyk(52.9%, 53.3%, 0%, 5.1%)
CIE-LABlab(53.81, 35.18, -64.99)
CIE-LCHlch(53.81, 73.90, 298.43°)
OKLaboklab(61.59% 0.0317 -0.1858)
OKLCHoklch(61.59% 0.189 279.7)
XYZxyz(28.8666, 21.7967, 86.6733)
Luminance0.2180 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7271F2 #F1F271
analogous
#71B1F2 #7271F2 #B371F2
triadic
#7271F2 #F27271 #71F272
tetradic
#7271F2 #F271B1 #F1F271 #71F2B3
square
#7271F2 #F271B1 #F1F271 #71F2B3
split-complementary
#7271F2 #F2B371 #B1F271
monochromatic
#1514D5 #3A39ED #7271F2 #AAA9F7 #E1E1FC

Accessibility & contrast

On white

3.92
#7271F2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.36
#7271F2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7271F2
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7271F2#FFFFFF#000000##000000
##7271F21.003.925.365.36
#FFFFFF3.921.0021.0021.00
#0000005.3621.001.001.00
##0000005.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#2486F6
Deuteranopia (green-blind)
#057CEF
Tritanopia (blue-blind)
#388EA7
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #7271f2;
/* rgb */ color: rgb(114, 113, 242);
/* oklch */ color: oklch(61.6% 0.189 279.7);
Tailwind
colors: {
  custom: {
    50: '#a39af7',
    500: '#7271f2',
    950: '#000000',
  },
}
SCSS
$custom: #7271f2;
$custom-light: #a39af7;
$custom-dark: #000000;
JSON
{
  "hex": "#7271f2",
  "rgb": {
    "r": 114,
    "g": 113,
    "b": 242
  },
  "hsl": {
    "h": 240.465,
    "s": 83.226,
    "l": 69.608
  },
  "oklch": {
    "l": 0.61586,
    "c": 0.18853,
    "h": 279.7
  },
  "luminance": 0.21798
}

Semantic roles & 50–950 ramp

primary
#7271F2
secondary
#F2F2CD
accent
#E006DE
background
#FAF9FF
surface
#F4F2FF
border
#CECCD7
text
#100E17
muted
#7F7E85

Preview Lab

Preview with #7271F2

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

Preview Lab → · Contrast checker → · Palette generator →

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