#7138CA#7138CA

#7138CA is a mid, highly saturated violet. Relative luminance 0.106; OKLCH L 49.8% C 0.211 H 295.5°. Best body text is #FFFFFF at 6.73:1 contrast (WCAG AA passes).

Color values

HEX#7138CA
RGBrgb(113, 56, 202)
HSLhsl(263, 58%, 51%)
HSVhsv(263, 72%, 79%)
CMYKcmyk(44.1%, 72.3%, 0%, 20.8%)
CIE-LABlab(38.90, 55.09, -66.45)
CIE-LCHlch(38.90, 86.32, 309.66°)
OKLaboklab(49.79% 0.0907 -0.1902)
OKLCHoklch(49.79% 0.211 295.5)
XYZxyz(18.8820, 10.6029, 56.9174)
Luminance0.1060 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7138CA #91CA38
analogous
#3848CA #7138CA #BA38CA
triadic
#7138CA #CA7138 #38CA71
tetradic
#7138CA #CA3848 #91CA38 #38CABA
square
#7138CA #CA3848 #91CA38 #38CABA
split-complementary
#7138CA #CABA38 #48CA38
monochromatic
#3B1D6B #56299B #7138CA #9368D7 #B699E4

Accessibility & contrast

On white

6.73
#7138CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.12
#7138CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7138CA
6.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7138CA#FFFFFF#000000##FFFFFF
##7138CA1.006.733.126.73
#FFFFFF6.731.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DCE
Deuteranopia (green-blind)
#0059C7
Tritanopia (blue-blind)
#585E7E
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #7138ca;
/* rgb */ color: rgb(113, 56, 202);
/* oklch */ color: oklch(49.8% 0.211 295.5);
Tailwind
colors: {
  custom: {
    50: '#a174db',
    500: '#7138ca',
    950: '#000000',
  },
}
SCSS
$custom: #7138ca;
$custom-light: #a174db;
$custom-dark: #000000;
JSON
{
  "hex": "#7138ca",
  "rgb": {
    "r": 113,
    "g": 56,
    "b": 202
  },
  "hsl": {
    "h": 263.425,
    "s": 57.937,
    "l": 50.588
  },
  "oklch": {
    "l": 0.49788,
    "c": 0.21076,
    "h": 295.5
  },
  "luminance": 0.10603
}

Semantic roles & 50–950 ramp

primary
#7138CA
secondary
#B6CF8E
accent
#E147A5
background
#FAF7FD
surface
#F4EDFB
border
#CEC8D4
text
#100815
muted
#7F7B83

Preview Lab

Preview with #7138CA

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

Preview Lab → · Contrast checker → · Palette generator →

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