#7238B2#7238B2

#7238B2 is a mid, vivid violet. Relative luminance 0.096; OKLCH L 48.0% C 0.184 H 301.5°. Best body text is #FFFFFF at 7.18:1 contrast (WCAG AA passes).

Color values

HEX#7238B2
RGBrgb(114, 56, 178)
HSLhsl(269, 52%, 46%)
HSVhsv(269, 69%, 70%)
CMYKcmyk(36%, 68.5%, 0%, 30.2%)
CIE-LABlab(37.15, 49.19, -55.21)
CIE-LCHlch(37.15, 73.94, 311.70°)
OKLaboklab(47.99% 0.0964 -0.1572)
OKLCHoklch(47.99% 0.184 301.5)
XYZxyz(16.3876, 9.6200, 43.1043)
Luminance0.0962 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7238B2 #78B238
analogous
#383BB2 #7238B2 #AF38B2
triadic
#7238B2 #B27238 #38B272
tetradic
#7238B2 #B2383B #78B238 #38B2AF
square
#7238B2 #B2383B #78B238 #38B2AF
split-complementary
#7238B2 #B2AF38 #3BB238
monochromatic
#361B55 #542983 #7238B2 #915CCC #B08ADA

Accessibility & contrast

On white

7.18
#7238B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#7238B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7238B2
7.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7238B2#FFFFFF#000000##FFFFFF
##7238B21.007.182.927.18
#FFFFFF7.181.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057B6
Deuteranopia (green-blind)
#0057AF
Tritanopia (blue-blind)
#645470
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #7238b2;
/* rgb */ color: rgb(114, 56, 178);
/* oklch */ color: oklch(48.0% 0.184 301.5);
Tailwind
colors: {
  custom: {
    50: '#a073ca',
    500: '#7238b2',
    950: '#000000',
  },
}
SCSS
$custom: #7238b2;
$custom-light: #a073ca;
$custom-dark: #000000;
JSON
{
  "hex": "#7238b2",
  "rgb": {
    "r": 114,
    "g": 56,
    "b": 178
  },
  "hsl": {
    "h": 268.525,
    "s": 52.137,
    "l": 45.882
  },
  "oklch": {
    "l": 0.47985,
    "c": 0.18438,
    "h": 301.5
  },
  "luminance": 0.0962
}

Semantic roles & 50–950 ramp

primary
#7238B2
secondary
#A5C581
accent
#DC4C97
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#0F0813
muted
#7F7B82

Preview Lab

Preview with #7238B2

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

Preview Lab → · Contrast checker → · Palette generator →

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