#7A8A17#7A8A17

#7A8A17 is a mid, vivid yellow. Relative luminance 0.224; OKLCH L 60.0% C 0.132 H 117.9°. Best body text is #000000 at 5.48:1 contrast (WCAG AA passes).

Color values

HEX#7A8A17
RGBrgb(122, 138, 23)
HSLhsl(68, 71%, 32%)
HSVhsv(68, 83%, 54%)
CMYKcmyk(11.6%, 0%, 83.3%, 45.9%)
CIE-LABlab(54.42, -20.36, 53.74)
CIE-LCHlch(54.42, 57.47, 110.75°)
OKLaboklab(60.02% -0.0617 0.1167)
OKLCHoklch(60.02% 0.132 117.9)
XYZxyz(17.2696, 22.3766, 4.2198)
Luminance0.2238 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A8A17 #27178A
analogous
#8A6117 #7A8A17 #418A17
triadic
#7A8A17 #177A8A #8A177A
tetradic
#7A8A17 #178A61 #27178A #8A1741
square
#7A8A17 #178A61 #27178A #8A1741
split-complementary
#7A8A17 #17418A #61178A
monochromatic
#1D2106 #4C560E #7A8A17 #A8BE20 #C8DF3D

Accessibility & contrast

On white

3.84
#7A8A17 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.48
#7A8A17 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7A8A17
5.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A8A17#FFFFFF#000000##000000
##7A8A171.003.845.485.48
#FFFFFF3.841.0021.0021.00
#0000005.4821.001.001.00
##0000005.4821.001.001.00

Color blindness preview

Protanopia (red-blind)
#948200
Deuteranopia (green-blind)
#928323
Tritanopia (blue-blind)
#828275
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #7a8a17;
/* rgb */ color: rgb(122, 138, 23);
/* oklch */ color: oklch(60.0% 0.132 117.9);
Tailwind
colors: {
  custom: {
    50: '#a4ac61',
    500: '#7a8a17',
    950: '#000000',
  },
}
SCSS
$custom: #7a8a17;
$custom-light: #a4ac61;
$custom-dark: #000000;
JSON
{
  "hex": "#7a8a17",
  "rgb": {
    "r": 122,
    "g": 138,
    "b": 23
  },
  "hsl": {
    "h": 68.348,
    "s": 71.429,
    "l": 31.569
  },
  "oklch": {
    "l": 0.60016,
    "c": 0.13198,
    "h": 117.9
  },
  "luminance": 0.22376
}

Semantic roles & 50–950 ramp

primary
#7A8A17
secondary
#513FBE
accent
#3AEE53
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101005
muted
#7F7F7A

Preview Lab

Preview with #7A8A17

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

Preview Lab → · Contrast checker → · Palette generator →

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