#7A8417#7A8417

#7A8417 is a mid, vivid yellow. Relative luminance 0.207; OKLCH L 58.6% C 0.125 H 115.1°. Best body text is #000000 at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#7A8417
RGBrgb(122, 132, 23)
HSLhsl(66, 70%, 30%)
HSVhsv(66, 83%, 52%)
CMYKcmyk(7.6%, 0%, 82.6%, 48.2%)
CIE-LABlab(52.62, -17.24, 52.16)
CIE-LCHlch(52.62, 54.93, 108.29°)
OKLaboklab(58.57% -0.0531 0.1133)
OKLCHoklch(58.57% 0.125 115.1)
XYZxyz(16.4325, 20.7023, 3.9407)
Luminance0.2070 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A8417 #211784
analogous
#845817 #7A8417 #438417
triadic
#7A8417 #177A84 #84177A
tetradic
#7A8417 #178458 #211784 #841743
square
#7A8417 #178458 #211784 #841743
split-complementary
#7A8417 #174384 #581784
monochromatic
#1A1C05 #4A500E #7A8417 #AAB820 #CDDC39

Accessibility & contrast

On white

4.09
#7A8417 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.14
#7A8417 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7A8417
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A8417#FFFFFF#000000##000000
##7A84171.004.095.145.14
#FFFFFF4.091.0021.0021.00
#0000005.1421.001.001.00
##0000005.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#8E7D00
Deuteranopia (green-blind)
#8D7E22
Tritanopia (blue-blind)
#837C70
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #7a8417;
/* rgb */ color: rgb(122, 132, 23);
/* oklch */ color: oklch(58.6% 0.125 115.1);
Tailwind
colors: {
  custom: {
    50: '#a4a760',
    500: '#7a8417',
    950: '#000000',
  },
}
SCSS
$custom: #7a8417;
$custom-light: #a4a760;
$custom-dark: #000000;
JSON
{
  "hex": "#7a8417",
  "rgb": {
    "r": 122,
    "g": 132,
    "b": 23
  },
  "hsl": {
    "h": 65.505,
    "s": 70.323,
    "l": 30.392
  },
  "oklch": {
    "l": 0.58568,
    "c": 0.12513,
    "h": 115.1
  },
  "luminance": 0.20702
}

Semantic roles & 50–950 ramp

primary
#7A8417
secondary
#4A3FB8
accent
#3BED4B
background
#FAFAF5
surface
#F4F4EA
border
#CECEC6
text
#100F05
muted
#7F7F79

Preview Lab

Preview with #7A8417

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

Preview Lab → · Contrast checker → · Palette generator →

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