#7A8B17#7A8B17

#7A8B17 is a mid, vivid yellow. Relative luminance 0.227; OKLCH L 60.3% C 0.133 H 118.3°. Best body text is #000000 at 5.53:1 contrast (WCAG AA passes).

Color values

HEX#7A8B17
RGBrgb(122, 139, 23)
HSLhsl(69, 72%, 32%)
HSVhsv(69, 83%, 55%)
CMYKcmyk(12.2%, 0%, 83.5%, 45.5%)
CIE-LABlab(54.73, -20.87, 54.00)
CIE-LCHlch(54.73, 57.90, 111.13°)
OKLaboklab(60.26% -0.0631 0.1173)
OKLCHoklch(60.26% 0.133 118.3)
XYZxyz(17.4137, 22.6648, 4.2678)
Luminance0.2266 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A8B17 #28178B
analogous
#8B6217 #7A8B17 #408B17
triadic
#7A8B17 #177A8B #8B177A
tetradic
#7A8B17 #178B62 #28178B #8B1740
square
#7A8B17 #178B62 #28178B #8B1740
split-complementary
#7A8B17 #17408B #62178B
monochromatic
#1E2206 #4C560E #7A8B17 #A8C020 #C7DF3D

Accessibility & contrast

On white

3.80
#7A8B17 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.53
#7A8B17 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7A8B17
5.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A8B17#FFFFFF#000000##000000
##7A8B171.003.805.535.53
#FFFFFF3.801.0021.0021.00
#0000005.5321.001.001.00
##0000005.5321.001.001.00

Color blindness preview

Protanopia (red-blind)
#958300
Deuteranopia (green-blind)
#938323
Tritanopia (blue-blind)
#828376
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #7a8b17;
/* rgb */ color: rgb(122, 139, 23);
/* oklch */ color: oklch(60.3% 0.133 118.3);
Tailwind
colors: {
  custom: {
    50: '#a4ac61',
    500: '#7a8b17',
    950: '#000000',
  },
}
SCSS
$custom: #7a8b17;
$custom-light: #a4ac61;
$custom-dark: #000000;
JSON
{
  "hex": "#7a8b17",
  "rgb": {
    "r": 122,
    "g": 139,
    "b": 23
  },
  "hsl": {
    "h": 68.793,
    "s": 71.605,
    "l": 31.765
  },
  "oklch": {
    "l": 0.60259,
    "c": 0.13315,
    "h": 118.3
  },
  "luminance": 0.22665
}

Semantic roles & 50–950 ramp

primary
#7A8B17
secondary
#523FBF
accent
#39EE54
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101005
muted
#7F7F7A

Preview Lab

Preview with #7A8B17

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

Preview Lab → · Contrast checker → · Palette generator →

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