#7A8D17#7A8D17

#7A8D17 is a mid, vivid yellow. Relative luminance 0.232; OKLCH L 60.7% C 0.135 H 119.1°. Best body text is #000000 at 5.65:1 contrast (WCAG AA passes).

Color values

HEX#7A8D17
RGBrgb(122, 141, 23)
HSLhsl(70, 72%, 32%)
HSVhsv(70, 84%, 55%)
CMYKcmyk(13.5%, 0%, 83.7%, 44.7%)
CIE-LABlab(55.33, -21.89, 54.53)
CIE-LCHlch(55.33, 58.76, 111.87°)
OKLaboklab(60.74% -0.0659 0.1184)
OKLCHoklch(60.74% 0.135 119.1)
XYZxyz(17.7060, 23.2493, 4.3653)
Luminance0.2325 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A8D17 #2A178D
analogous
#8D6517 #7A8D17 #3F8D17
triadic
#7A8D17 #177A8D #8D177A
tetradic
#7A8D17 #178D65 #2A178D #8D173F
square
#7A8D17 #178D65 #2A178D #8D173F
split-complementary
#7A8D17 #173F8D #65178D
monochromatic
#1F2406 #4C580E #7A8D17 #A8C220 #C6E03F

Accessibility & contrast

On white

3.72
#7A8D17 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.65
#7A8D17 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7A8D17
5.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A8D17#FFFFFF#000000##000000
##7A8D171.003.725.655.65
#FFFFFF3.721.0021.0021.00
#0000005.6521.001.001.00
##0000005.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#978400
Deuteranopia (green-blind)
#958524
Tritanopia (blue-blind)
#828578
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #7a8d17;
/* rgb */ color: rgb(122, 141, 23);
/* oklch */ color: oklch(60.7% 0.135 119.1);
Tailwind
colors: {
  custom: {
    50: '#a4ae61',
    500: '#7a8d17',
    950: '#000000',
  },
}
SCSS
$custom: #7a8d17;
$custom-light: #a4ae61;
$custom-dark: #000000;
JSON
{
  "hex": "#7a8d17",
  "rgb": {
    "r": 122,
    "g": 141,
    "b": 23
  },
  "hsl": {
    "h": 69.661,
    "s": 71.951,
    "l": 32.157
  },
  "oklch": {
    "l": 0.60744,
    "c": 0.13547,
    "h": 119.1
  },
  "luminance": 0.23249
}

Semantic roles & 50–950 ramp

primary
#7A8D17
secondary
#5540C0
accent
#39EF56
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101005
muted
#7F7F7A

Preview Lab

Preview with #7A8D17

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

Preview Lab → · Contrast checker → · Palette generator →

#7A8D17 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva