#7A7017#7A7017

#7A7017 is a mid, moderate yellow. Relative luminance 0.158; OKLCH L 53.8% C 0.105 H 102.6°. Best body text is #FFFFFF at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#7A7017
RGBrgb(122, 112, 23)
HSLhsl(54, 68%, 28%)
HSVhsv(54, 81%, 48%)
CMYKcmyk(0%, 8.2%, 81.1%, 52.2%)
CIE-LABlab(46.70, -6.34, 46.88)
CIE-LCHlch(46.70, 47.31, 97.70°)
OKLaboklab(53.83% -0.0228 0.102)
OKLCHoklch(53.83% 0.105 102.6)
XYZxyz(13.9755, 15.7884, 3.1218)
Luminance0.1579 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A7017 #17217A
analogous
#7A3E17 #7A7017 #527A17
triadic
#7A7017 #177A70 #70177A
tetradic
#7A7017 #177A3E #17217A #7A1752
square
#7A7017 #177A3E #17217A #7A1752
split-complementary
#7A7017 #17527A #3E177A
monochromatic
#1A1805 #47410D #7A7017 #AD9F21 #D9C833

Accessibility & contrast

On white

5.05
#7A7017 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.16
#7A7017 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A7017
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A7017#FFFFFF#000000##FFFFFF
##7A70171.005.054.165.05
#FFFFFF5.051.0021.001.00
#0000004.1621.001.0021.00
##FFFFFF5.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7B6C02
Deuteranopia (green-blind)
#7E711E
Tritanopia (blue-blind)
#84675F
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #7a7017;
/* rgb */ color: rgb(122, 112, 23);
/* oklch */ color: oklch(53.8% 0.105 102.6);
Tailwind
colors: {
  custom: {
    50: '#a4985d',
    500: '#7a7017',
    950: '#000000',
  },
}
SCSS
$custom: #7a7017;
$custom-light: #a4985d;
$custom-dark: #000000;
JSON
{
  "hex": "#7a7017",
  "rgb": {
    "r": 122,
    "g": 112,
    "b": 23
  },
  "hsl": {
    "h": 53.939,
    "s": 68.276,
    "l": 28.431
  },
  "oklch": {
    "l": 0.53832,
    "c": 0.10451,
    "h": 102.6
  },
  "luminance": 0.15788
}

Semantic roles & 50–950 ramp

primary
#7A7017
secondary
#3E49AF
accent
#4EEB3D
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#100D04
muted
#7F7E79

Preview Lab

Preview with #7A7017

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

Preview Lab → · Contrast checker → · Palette generator →

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