#7138AF#7138AF

#7138AF is a mid, vivid violet. Relative luminance 0.094; OKLCH L 47.6% C 0.181 H 301.8°. Best body text is #FFFFFF at 7.27:1 contrast (WCAG AA passes).

Color values

HEX#7138AF
RGBrgb(113, 56, 175)
HSLhsl(269, 52%, 45%)
HSVhsv(269, 68%, 69%)
CMYKcmyk(35.4%, 68%, 0%, 31.4%)
CIE-LABlab(36.81, 48.23, -54.00)
CIE-LCHlch(36.81, 72.40, 311.77°)
OKLaboklab(47.64% 0.0954 -0.1536)
OKLCHoklch(47.64% 0.181 301.8)
XYZxyz(15.9602, 9.4341, 41.5293)
Luminance0.0943 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7138AF #76AF38
analogous
#383BAF #7138AF #AC38AF
triadic
#7138AF #AF7138 #38AF71
tetradic
#7138AF #AF383B #76AF38 #38AFAC
square
#7138AF #AF383B #76AF38 #38AFAC
split-complementary
#7138AF #AFAC38 #3BAF38
monochromatic
#351A52 #532981 #7138AF #905ACA #AF88D9

Accessibility & contrast

On white

7.27
#7138AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#7138AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7138AF
7.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7138AF#FFFFFF#000000##FFFFFF
##7138AF1.007.272.897.27
#FFFFFF7.271.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056B3
Deuteranopia (green-blind)
#0056AC
Tritanopia (blue-blind)
#64536F
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #7138af;
/* rgb */ color: rgb(113, 56, 175);
/* oklch */ color: oklch(47.6% 0.181 301.8);
Tailwind
colors: {
  custom: {
    50: '#9f73c8',
    500: '#7138af',
    950: '#000000',
  },
}
SCSS
$custom: #7138af;
$custom-light: #9f73c8;
$custom-dark: #000000;
JSON
{
  "hex": "#7138af",
  "rgb": {
    "r": 113,
    "g": 56,
    "b": 175
  },
  "hsl": {
    "h": 268.739,
    "s": 51.515,
    "l": 45.294
  },
  "oklch": {
    "l": 0.47641,
    "c": 0.18085,
    "h": 301.8
  },
  "luminance": 0.09434
}

Semantic roles & 50–950 ramp

primary
#7138AF
secondary
#A3C380
accent
#DB4D97
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#0F0813
muted
#7F7B82

Preview Lab

Preview with #7138AF

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

Preview Lab → · Contrast checker → · Palette generator →

#7138AF Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva