#797124#797124

#797124 is a mid, moderate yellow. Relative luminance 0.160; OKLCH L 54.1% C 0.097 H 103.3°. Best body text is #FFFFFF at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#797124
RGBrgb(121, 113, 36)
HSLhsl(54, 54%, 31%)
HSVhsv(54, 70%, 47%)
CMYKcmyk(0%, 6.6%, 70.2%, 52.5%)
CIE-LABlab(46.98, -6.72, 42.02)
CIE-LCHlch(46.98, 42.55, 99.08°)
OKLaboklab(54.06% -0.0224 0.0943)
OKLCHoklch(54.06% 0.097 103.3)
XYZxyz(14.1093, 16.0031, 4.0144)
Luminance0.1600 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797124 #242C79
analogous
#794624 #797124 #567924
triadic
#797124 #247971 #712479
tetradic
#797124 #247946 #242C79 #792456
square
#797124 #247946 #242C79 #792456
split-complementary
#797124 #245679 #462479
monochromatic
#1B1908 #4A4516 #797124 #A89D32 #CABE4D

Accessibility & contrast

On white

5.00
#797124 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.20
#797124 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #797124
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797124#FFFFFF#000000##FFFFFF
##7971241.005.004.205.00
#FFFFFF5.001.0021.001.00
#0000004.2021.001.0021.00
##FFFFFF5.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7B6D19
Deuteranopia (green-blind)
#7E7129
Tritanopia (blue-blind)
#826961
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #797124;
/* rgb */ color: rgb(121, 113, 36);
/* oklch */ color: oklch(54.1% 0.097 103.3);
Tailwind
colors: {
  custom: {
    50: '#a29963',
    500: '#797124',
    950: '#000000',
  },
}
SCSS
$custom: #797124;
$custom-light: #a29963;
$custom-dark: #000000;
JSON
{
  "hex": "#797124",
  "rgb": {
    "r": 121,
    "g": 113,
    "b": 36
  },
  "hsl": {
    "h": 54.353,
    "s": 54.14,
    "l": 30.784
  },
  "oklch": {
    "l": 0.54062,
    "c": 0.09694,
    "h": 103.3
  },
  "luminance": 0.16003
}

Semantic roles & 50–950 ramp

primary
#797124
secondary
#4D56AC
accent
#58DE4A
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0D05
muted
#7F7E7A

Preview Lab

Preview with #797124

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

Preview Lab → · Contrast checker → · Palette generator →

#797124 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva