#7238BE#7238BE

#7238BE is a mid, vivid violet. Relative luminance 0.101; OKLCH L 48.9% C 0.198 H 298.6°. Best body text is #FFFFFF at 6.94:1 contrast (WCAG AA passes).

Color values

HEX#7238BE
RGBrgb(114, 56, 190)
HSLhsl(266, 54%, 48%)
HSVhsv(266, 71%, 75%)
CMYKcmyk(40%, 70.5%, 0%, 25.5%)
CIE-LABlab(38.06, 52.21, -60.81)
CIE-LCHlch(38.06, 80.15, 310.65°)
OKLaboklab(48.92% 0.0945 -0.1736)
OKLCHoklch(48.92% 0.198 298.6)
XYZxyz(17.6455, 10.1232, 49.7295)
Luminance0.1012 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7238BE #84BE38
analogous
#3841BE #7238BE #B538BE
triadic
#7238BE #BE7238 #38BE72
tetradic
#7238BE #BE3841 #84BE38 #38BEB5
square
#7238BE #BE3841 #84BE38 #38BEB5
split-complementary
#7238BE #BEB538 #41BE38
monochromatic
#391C5F #562A8F #7238BE #9262D1 #B392DF

Accessibility & contrast

On white

6.94
#7238BE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.02
#7238BE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7238BE
6.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7238BE#FFFFFF#000000##FFFFFF
##7238BE1.006.943.026.94
#FFFFFF6.941.0021.001.00
#0000003.0221.001.0021.00
##FFFFFF6.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AC2
Deuteranopia (green-blind)
#0058BB
Tritanopia (blue-blind)
#605977
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #7238be;
/* rgb */ color: rgb(114, 56, 190);
/* oklch */ color: oklch(48.9% 0.198 298.6);
Tailwind
colors: {
  custom: {
    50: '#a173d3',
    500: '#7238be',
    950: '#000000',
  },
}
SCSS
$custom: #7238be;
$custom-light: #a173d3;
$custom-dark: #000000;
JSON
{
  "hex": "#7238be",
  "rgb": {
    "r": 114,
    "g": 56,
    "b": 190
  },
  "hsl": {
    "h": 265.97,
    "s": 54.472,
    "l": 48.235
  },
  "oklch": {
    "l": 0.4892,
    "c": 0.19768,
    "h": 298.6
  },
  "luminance": 0.10123
}

Semantic roles & 50–950 ramp

primary
#7238BE
secondary
#ADCA88
accent
#DE4A9E
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#100814
muted
#7F7B83

Preview Lab

Preview with #7238BE

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

Preview Lab → · Contrast checker → · Palette generator →

#7238BE Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva