#712BAF#712BAF

#712BAF is a mid, vivid violet. Relative luminance 0.083; OKLCH L 46.1% C 0.196 H 303.5°. Best body text is #FFFFFF at 7.87:1 contrast (WCAG AA passes).

Color values

HEX#712BAF
RGBrgb(113, 43, 175)
HSLhsl(272, 61%, 43%)
HSVhsv(272, 75%, 69%)
CMYKcmyk(35.4%, 75.4%, 0%, 31.4%)
CIE-LABlab(34.67, 54.24, -57.47)
CIE-LCHlch(34.67, 79.03, 313.35°)
OKLaboklab(46.12% 0.1085 -0.1638)
OKLCHoklch(46.12% 0.196 303.5)
XYZxyz(15.4100, 8.3336, 41.3458)
Luminance0.0833 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#712BAF #69AF2B
analogous
#2F2BAF #712BAF #AF2BAB
triadic
#712BAF #AF712B #2BAF71
tetradic
#712BAF #AF2F2B #69AF2B #2BABAF
square
#712BAF #AF2F2B #69AF2B #2BABAF
split-complementary
#712BAF #ABAF2B #2BAF2F
monochromatic
#32134D #511F7E #712BAF #9046D1 #AD77DE

Accessibility & contrast

On white

7.87
#712BAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#712BAF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #712BAF
7.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##712BAF#FFFFFF#000000##FFFFFF
##712BAF1.007.872.677.87
#FFFFFF7.871.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B3
Deuteranopia (green-blind)
#0051AC
Tritanopia (blue-blind)
#654C6B
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #712baf;
/* rgb */ color: rgb(113, 43, 175);
/* oklch */ color: oklch(46.1% 0.196 303.5);
Tailwind
colors: {
  custom: {
    50: '#9f6cc8',
    500: '#712baf',
    950: '#000000',
  },
}
SCSS
$custom: #712baf;
$custom-light: #9f6cc8;
$custom-dark: #000000;
JSON
{
  "hex": "#712baf",
  "rgb": {
    "r": 113,
    "g": 43,
    "b": 175
  },
  "hsl": {
    "h": 271.818,
    "s": 60.55,
    "l": 42.745
  },
  "oklch": {
    "l": 0.46122,
    "c": 0.19645,
    "h": 303.5
  },
  "luminance": 0.08334
}

Semantic roles & 50–950 ramp

primary
#712BAF
secondary
#98C570
accent
#E4448F
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#0F0713
muted
#7F7A82

Preview Lab

Preview with #712BAF

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

Preview Lab → · Contrast checker → · Palette generator →

#712BAF Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva