#7A7917#7A7917

#7A7917 is a mid, moderate yellow. Relative luminance 0.179; OKLCH L 55.9% C 0.113 H 108.9°. Best body text is #FFFFFF at 4.59:1 contrast (WCAG AA passes).

Color values

HEX#7A7917
RGBrgb(122, 121, 23)
HSLhsl(59, 68%, 28%)
HSVhsv(59, 81%, 48%)
CMYKcmyk(0%, 0.8%, 81.1%, 52.2%)
CIE-LABlab(49.34, -11.34, 49.26)
CIE-LCHlch(49.34, 50.54, 102.97°)
OKLaboklab(55.94% -0.0368 0.1071)
OKLCHoklch(55.94% 0.113 108.9)
XYZxyz(15.0187, 17.8747, 3.4695)
Luminance0.1787 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A7917 #17187A
analogous
#7A4717 #7A7917 #497A17
triadic
#7A7917 #177A79 #79177A
tetradic
#7A7917 #177A47 #17187A #7A1749
square
#7A7917 #177A47 #17187A #7A1749
split-complementary
#7A7917 #17497A #47177A
monochromatic
#1A1A05 #47460D #7A7917 #ADAC21 #D9D733

Accessibility & contrast

On white

4.59
#7A7917 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.57
#7A7917 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #7A7917
4.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A7917#FFFFFF#000000##FFFFFF
##7A79171.004.594.574.59
#FFFFFF4.591.0021.001.00
#0000004.5721.001.0021.00
##FFFFFF4.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#847400
Deuteranopia (green-blind)
#857720
Tritanopia (blue-blind)
#837167
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #7a7917;
/* rgb */ color: rgb(122, 121, 23);
/* oklch */ color: oklch(55.9% 0.113 108.9);
Tailwind
colors: {
  custom: {
    50: '#a49f5e',
    500: '#7a7917',
    950: '#000000',
  },
}
SCSS
$custom: #7a7917;
$custom-light: #a49f5e;
$custom-dark: #000000;
JSON
{
  "hex": "#7a7917",
  "rgb": {
    "r": 122,
    "g": 121,
    "b": 23
  },
  "hsl": {
    "h": 59.394,
    "s": 68.276,
    "l": 28.431
  },
  "oklch": {
    "l": 0.55942,
    "c": 0.11322,
    "h": 108.9
  },
  "luminance": 0.17874
}

Semantic roles & 50–950 ramp

primary
#7A7917
secondary
#3E3FAF
accent
#3EEB3D
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #7A7917

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

Preview Lab → · Contrast checker → · Palette generator →

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