#7A8418#7A8418

#7A8418 is a mid, vivid yellow. Relative luminance 0.207; OKLCH L 58.6% C 0.125 H 115.1°. Best body text is #000000 at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#7A8418
RGBrgb(122, 132, 24)
HSLhsl(66, 69%, 31%)
HSVhsv(66, 82%, 52%)
CMYKcmyk(7.6%, 0%, 81.8%, 48.2%)
CIE-LABlab(52.63, -17.20, 51.87)
CIE-LCHlch(52.63, 54.65, 108.35°)
OKLaboklab(58.57% -0.0529 0.1129)
OKLCHoklch(58.57% 0.125 115.1)
XYZxyz(16.4427, 20.7063, 3.9945)
Luminance0.2071 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A8418 #221884
analogous
#845818 #7A8418 #448418
triadic
#7A8418 #187A84 #84187A
tetradic
#7A8418 #188458 #221884 #841844
square
#7A8418 #188458 #221884 #841844
split-complementary
#7A8418 #184484 #581884
monochromatic
#1A1C05 #4A500F #7A8418 #AAB821 #CDDB3B

Accessibility & contrast

On white

4.08
#7A8418 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.14
#7A8418 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7A8418
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A8418#FFFFFF#000000##000000
##7A84181.004.085.145.14
#FFFFFF4.081.0021.0021.00
#0000005.1421.001.001.00
##0000005.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#8E7D00
Deuteranopia (green-blind)
#8D7E23
Tritanopia (blue-blind)
#827C70
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #7a8418;
/* rgb */ color: rgb(122, 132, 24);
/* oklch */ color: oklch(58.6% 0.125 115.1);
Tailwind
colors: {
  custom: {
    50: '#a4a760',
    500: '#7a8418',
    950: '#000000',
  },
}
SCSS
$custom: #7a8418;
$custom-light: #a4a760;
$custom-dark: #000000;
JSON
{
  "hex": "#7a8418",
  "rgb": {
    "r": 122,
    "g": 132,
    "b": 24
  },
  "hsl": {
    "h": 65.556,
    "s": 69.231,
    "l": 30.588
  },
  "oklch": {
    "l": 0.58573,
    "c": 0.12465,
    "h": 115.1
  },
  "luminance": 0.20706
}

Semantic roles & 50–950 ramp

primary
#7A8418
secondary
#4B40B8
accent
#3CEC4C
background
#FAFAF5
surface
#F4F4EA
border
#CECEC6
text
#100F05
muted
#7F7F79

Preview Lab

Preview with #7A8418

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

Preview Lab → · Contrast checker → · Palette generator →

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