#7A8517#7A8517

#7A8517 is a mid, vivid yellow. Relative luminance 0.210; OKLCH L 58.8% C 0.126 H 115.6°. Best body text is #000000 at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#7A8517
RGBrgb(122, 133, 23)
HSLhsl(66, 71%, 31%)
HSVhsv(66, 83%, 52%)
CMYKcmyk(8.3%, 0%, 82.7%, 47.8%)
CIE-LABlab(52.92, -17.77, 52.42)
CIE-LCHlch(52.92, 55.35, 108.72°)
OKLaboklab(58.81% -0.0545 0.1139)
OKLCHoklch(58.81% 0.126 115.6)
XYZxyz(16.5687, 20.9748, 3.9862)
Luminance0.2097 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A8517 #221785
analogous
#855917 #7A8517 #438517
triadic
#7A8517 #177A85 #85177A
tetradic
#7A8517 #178559 #221785 #851743
square
#7A8517 #178559 #221785 #851743
split-complementary
#7A8517 #174385 #591785
monochromatic
#1A1D05 #4A510E #7A8517 #AAB920 #CDDD3A

Accessibility & contrast

On white

4.04
#7A8517 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.19
#7A8517 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7A8517
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A8517#FFFFFF#000000##000000
##7A85171.004.045.195.19
#FFFFFF4.041.0021.0021.00
#0000005.1921.001.001.00
##0000005.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F7E00
Deuteranopia (green-blind)
#8E7F22
Tritanopia (blue-blind)
#827D71
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #7a8517;
/* rgb */ color: rgb(122, 133, 23);
/* oklch */ color: oklch(58.8% 0.126 115.6);
Tailwind
colors: {
  custom: {
    50: '#a4a860',
    500: '#7a8517',
    950: '#000000',
  },
}
SCSS
$custom: #7a8517;
$custom-light: #a4a860;
$custom-dark: #000000;
JSON
{
  "hex": "#7a8517",
  "rgb": {
    "r": 122,
    "g": 133,
    "b": 23
  },
  "hsl": {
    "h": 66,
    "s": 70.513,
    "l": 30.588
  },
  "oklch": {
    "l": 0.58808,
    "c": 0.12626,
    "h": 115.6
  },
  "luminance": 0.20974
}

Semantic roles & 50–950 ramp

primary
#7A8517
secondary
#4B3FB9
accent
#3BED4C
background
#FAFAF5
surface
#F4F4EA
border
#CECEC6
text
#100F05
muted
#7F7F79

Preview Lab

Preview with #7A8517

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

Preview Lab → · Contrast checker → · Palette generator →

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