#7A8518#7A8518

#7A8518 is a mid, vivid yellow. Relative luminance 0.210; OKLCH L 58.8% C 0.126 H 115.6°. Best body text is #000000 at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#7A8518
RGBrgb(122, 133, 24)
HSLhsl(66, 69%, 31%)
HSVhsv(66, 82%, 52%)
CMYKcmyk(8.3%, 0%, 82%, 47.8%)
CIE-LABlab(52.93, -17.73, 52.13)
CIE-LCHlch(52.93, 55.06, 108.78°)
OKLaboklab(58.81% -0.0544 0.1134)
OKLCHoklch(58.81% 0.126 115.6)
XYZxyz(16.5789, 20.9789, 4.0399)
Luminance0.2098 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A8518 #231885
analogous
#855918 #7A8518 #438518
triadic
#7A8518 #187A85 #85187A
tetradic
#7A8518 #188559 #231885 #851843
square
#7A8518 #188559 #231885 #851843
split-complementary
#7A8518 #184385 #591885
monochromatic
#1B1D05 #4A510F #7A8518 #AAB921 #CCDC3C

Accessibility & contrast

On white

4.04
#7A8518 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.20
#7A8518 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7A8518
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A8518#FFFFFF#000000##000000
##7A85181.004.045.205.20
#FFFFFF4.041.0021.0021.00
#0000005.2021.001.001.00
##0000005.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F7E00
Deuteranopia (green-blind)
#8E7F23
Tritanopia (blue-blind)
#827D71
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #7a8518;
/* rgb */ color: rgb(122, 133, 24);
/* oklch */ color: oklch(58.8% 0.126 115.6);
Tailwind
colors: {
  custom: {
    50: '#a4a860',
    500: '#7a8518',
    950: '#000000',
  },
}
SCSS
$custom: #7a8518;
$custom-light: #a4a860;
$custom-dark: #000000;
JSON
{
  "hex": "#7a8518",
  "rgb": {
    "r": 122,
    "g": 133,
    "b": 24
  },
  "hsl": {
    "h": 66.055,
    "s": 69.427,
    "l": 30.784
  },
  "oklch": {
    "l": 0.58813,
    "c": 0.12579,
    "h": 115.6
  },
  "luminance": 0.20979
}

Semantic roles & 50–950 ramp

primary
#7A8518
secondary
#4C40B9
accent
#3CEC4D
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F05
muted
#7F7F7A

Preview Lab

Preview with #7A8518

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

Preview Lab → · Contrast checker → · Palette generator →

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