#7A8817#7A8817

#7A8817 is a mid, vivid yellow. Relative luminance 0.218; OKLCH L 59.5% C 0.130 H 117.0°. Best body text is #000000 at 5.36:1 contrast (WCAG AA passes).

Color values

HEX#7A8817
RGBrgb(122, 136, 23)
HSLhsl(67, 71%, 31%)
HSVhsv(67, 83%, 53%)
CMYKcmyk(10.3%, 0%, 83.1%, 46.7%)
CIE-LABlab(53.82, -19.33, 53.21)
CIE-LCHlch(53.82, 56.61, 109.96°)
OKLaboklab(59.53% -0.0588 0.1156)
OKLCHoklch(59.53% 0.13 117)
XYZxyz(16.9853, 21.8080, 4.1250)
Luminance0.2181 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A8817 #251788
analogous
#885D17 #7A8817 #418817
triadic
#7A8817 #177A88 #88177A
tetradic
#7A8817 #17885D #251788 #881741
square
#7A8817 #17885D #251788 #881741
split-complementary
#7A8817 #174188 #5D1788
monochromatic
#1C1F05 #4B540E #7A8817 #A9BC20 #CADE3B

Accessibility & contrast

On white

3.92
#7A8817 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.36
#7A8817 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7A8817
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A8817#FFFFFF#000000##000000
##7A88171.003.925.365.36
#FFFFFF3.921.0021.0021.00
#0000005.3621.001.001.00
##0000005.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#928000
Deuteranopia (green-blind)
#918123
Tritanopia (blue-blind)
#828074
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #7a8817;
/* rgb */ color: rgb(122, 136, 23);
/* oklch */ color: oklch(59.5% 0.130 117.0);
Tailwind
colors: {
  custom: {
    50: '#a4aa60',
    500: '#7a8817',
    950: '#000000',
  },
}
SCSS
$custom: #7a8817;
$custom-light: #a4aa60;
$custom-dark: #000000;
JSON
{
  "hex": "#7a8817",
  "rgb": {
    "r": 122,
    "g": 136,
    "b": 23
  },
  "hsl": {
    "h": 67.434,
    "s": 71.069,
    "l": 31.176
  },
  "oklch": {
    "l": 0.59532,
    "c": 0.12968,
    "h": 117
  },
  "luminance": 0.21808
}

Semantic roles & 50–950 ramp

primary
#7A8817
secondary
#4E3FBC
accent
#3AEE50
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101005
muted
#7F7F7A

Preview Lab

Preview with #7A8817

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

Preview Lab → · Contrast checker → · Palette generator →

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