#7A7018#7A7018

#7A7018 is a mid, moderate yellow. Relative luminance 0.158; OKLCH L 53.8% C 0.104 H 102.5°. Best body text is #FFFFFF at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#7A7018
RGBrgb(122, 112, 24)
HSLhsl(54, 67%, 29%)
HSVhsv(54, 80%, 48%)
CMYKcmyk(0%, 8.2%, 80.3%, 52.2%)
CIE-LABlab(46.70, -6.29, 46.54)
CIE-LCHlch(46.70, 46.97, 97.70°)
OKLaboklab(53.84% -0.0225 0.1015)
OKLCHoklch(53.84% 0.104 102.5)
XYZxyz(13.9857, 15.7925, 3.1755)
Luminance0.1579 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A7018 #18227A
analogous
#7A3F18 #7A7018 #537A18
triadic
#7A7018 #187A70 #70187A
tetradic
#7A7018 #187A3F #18227A #7A1853
square
#7A7018 #187A3F #18227A #7A1853
split-complementary
#7A7018 #18537A #3F187A
monochromatic
#1A1705 #47410E #7A7018 #AD9F22 #D7C735

Accessibility & contrast

On white

5.05
#7A7018 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.16
#7A7018 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A7018
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A7018#FFFFFF#000000##FFFFFF
##7A70181.005.054.165.05
#FFFFFF5.051.0021.001.00
#0000004.1621.001.0021.00
##FFFFFF5.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7B6C03
Deuteranopia (green-blind)
#7E711F
Tritanopia (blue-blind)
#846760
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #7a7018;
/* rgb */ color: rgb(122, 112, 24);
/* oklch */ color: oklch(53.8% 0.104 102.5);
Tailwind
colors: {
  custom: {
    50: '#a4985d',
    500: '#7a7018',
    950: '#000000',
  },
}
SCSS
$custom: #7a7018;
$custom-light: #a4985d;
$custom-dark: #000000;
JSON
{
  "hex": "#7a7018",
  "rgb": {
    "r": 122,
    "g": 112,
    "b": 24
  },
  "hsl": {
    "h": 53.878,
    "s": 67.123,
    "l": 28.627
  },
  "oklch": {
    "l": 0.53838,
    "c": 0.10396,
    "h": 102.5
  },
  "luminance": 0.15792
}

Semantic roles & 50–950 ramp

primary
#7A7018
secondary
#3F4AAF
accent
#4FEA3E
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#100D05
muted
#7F7E79

Preview Lab

Preview with #7A7018

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

Preview Lab → · Contrast checker → · Palette generator →

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