#7A7C17#7A7C17

#7A7C17 is a mid, moderate yellow. Relative luminance 0.186; OKLCH L 56.7% C 0.116 H 110.8°. Best body text is #000000 at 4.72:1 contrast (WCAG AA passes).

Color values

HEX#7A7C17
RGBrgb(122, 124, 23)
HSLhsl(61, 69%, 29%)
HSVhsv(61, 81%, 49%)
CMYKcmyk(1.6%, 0%, 81.5%, 51.4%)
CIE-LABlab(50.23, -12.97, 50.05)
CIE-LCHlch(50.23, 51.70, 104.53°)
OKLaboklab(56.65% -0.0413 0.1088)
OKLCHoklch(56.65% 0.116 110.8)
XYZxyz(15.3889, 18.6152, 3.5929)
Luminance0.1862 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A7C17 #19177C
analogous
#7C4C17 #7A7C17 #487C17
triadic
#7A7C17 #177A7C #7C177A
tetradic
#7A7C17 #177C4C #19177C #7C1748
square
#7A7C17 #177C4C #19177C #7C1748
split-complementary
#7A7C17 #17487C #4C177C
monochromatic
#191A05 #47480D #7A7C17 #ADB021 #D6D934

Accessibility & contrast

On white

4.45
#7A7C17 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.72
#7A7C17 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7A7C17
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A7C17#FFFFFF#000000##000000
##7A7C171.004.454.724.72
#FFFFFF4.451.0021.0021.00
#0000004.7221.001.001.00
##0000004.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#867600
Deuteranopia (green-blind)
#877920
Tritanopia (blue-blind)
#83746A
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #7a7c17;
/* rgb */ color: rgb(122, 124, 23);
/* oklch */ color: oklch(56.7% 0.116 110.8);
Tailwind
colors: {
  custom: {
    50: '#a4a15e',
    500: '#7a7c17',
    950: '#000000',
  },
}
SCSS
$custom: #7a7c17;
$custom-light: #a4a15e;
$custom-dark: #000000;
JSON
{
  "hex": "#7a7c17",
  "rgb": {
    "r": 122,
    "g": 124,
    "b": 23
  },
  "hsl": {
    "h": 61.188,
    "s": 68.707,
    "l": 28.824
  },
  "oklch": {
    "l": 0.56654,
    "c": 0.11636,
    "h": 110.8
  },
  "luminance": 0.18615
}

Semantic roles & 50–950 ramp

primary
#7A7C17
secondary
#403EB1
accent
#3CEC40
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #7A7C17

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

Preview Lab → · Contrast checker → · Palette generator →

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