#7A8918#7A8918

#7A8918 is a mid, vivid yellow. Relative luminance 0.221; OKLCH L 59.8% C 0.130 H 117.4°. Best body text is #000000 at 5.42:1 contrast (WCAG AA passes).

Color values

HEX#7A8918
RGBrgb(122, 137, 24)
HSLhsl(68, 70%, 32%)
HSVhsv(68, 82%, 54%)
CMYKcmyk(10.9%, 0%, 82.5%, 46.3%)
CIE-LABlab(54.13, -19.81, 53.19)
CIE-LCHlch(54.13, 56.76, 110.42°)
OKLaboklab(59.78% -0.0601 0.1157)
OKLCHoklch(59.78% 0.13 117.4)
XYZxyz(17.1370, 22.0950, 4.2260)
Luminance0.2210 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A8918 #271889
analogous
#896018 #7A8918 #428918
triadic
#7A8918 #187A89 #89187A
tetradic
#7A8918 #188960 #271889 #891842
square
#7A8918 #188960 #271889 #891842
split-complementary
#7A8918 #184289 #601889
monochromatic
#1D2106 #4C550F #7A8918 #A8BD21 #C8DD3E

Accessibility & contrast

On white

3.88
#7A8918 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.42
#7A8918 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7A8918
5.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A8918#FFFFFF#000000##000000
##7A89181.003.885.425.42
#FFFFFF3.881.0021.0021.00
#0000005.4221.001.001.00
##0000005.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#938100
Deuteranopia (green-blind)
#918224
Tritanopia (blue-blind)
#828175
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #7a8918;
/* rgb */ color: rgb(122, 137, 24);
/* oklch */ color: oklch(59.8% 0.130 117.4);
Tailwind
colors: {
  custom: {
    50: '#a4ab61',
    500: '#7a8918',
    950: '#000000',
  },
}
SCSS
$custom: #7a8918;
$custom-light: #a4ab61;
$custom-dark: #000000;
JSON
{
  "hex": "#7a8918",
  "rgb": {
    "r": 122,
    "g": 137,
    "b": 24
  },
  "hsl": {
    "h": 67.965,
    "s": 70.186,
    "l": 31.569
  },
  "oklch": {
    "l": 0.59779,
    "c": 0.13037,
    "h": 117.4
  },
  "luminance": 0.22095
}

Semantic roles & 50–950 ramp

primary
#7A8918
secondary
#5140BD
accent
#3BED52
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101005
muted
#7F7F7A

Preview Lab

Preview with #7A8918

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

Preview Lab → · Contrast checker → · Palette generator →

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