#797522#797522

#797522 is a mid, moderate yellow. Relative luminance 0.169; OKLCH L 55.0% C 0.102 H 106.6°. Best body text is #FFFFFF at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#797522
RGBrgb(121, 117, 34)
HSLhsl(57, 56%, 30%)
HSVhsv(57, 72%, 47%)
CMYKcmyk(0%, 3.3%, 71.9%, 52.5%)
CIE-LABlab(48.14, -9.07, 44.04)
CIE-LCHlch(48.14, 44.97, 101.64°)
OKLaboklab(54.98% -0.0293 0.0982)
OKLCHoklch(54.98% 0.102 106.6)
XYZxyz(14.5357, 16.9035, 4.0101)
Luminance0.1690 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797522 #222679
analogous
#794922 #797522 #527922
triadic
#797522 #227975 #752279
tetradic
#797522 #227949 #222679 #792252
square
#797522 #227949 #222679 #792252
split-complementary
#797522 #225279 #492279
monochromatic
#191907 #494715 #797522 #A9A32F #CCC649

Accessibility & contrast

On white

4.79
#797522 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.38
#797522 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #797522
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797522#FFFFFF#000000##FFFFFF
##7975221.004.794.384.79
#FFFFFF4.791.0021.001.00
#0000004.3821.001.0021.00
##FFFFFF4.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F7015
Deuteranopia (green-blind)
#817428
Tritanopia (blue-blind)
#826D64
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #797522;
/* rgb */ color: rgb(121, 117, 34);
/* oklch */ color: oklch(55.0% 0.102 106.6);
Tailwind
colors: {
  custom: {
    50: '#a39c63',
    500: '#797522',
    950: '#000000',
  },
}
SCSS
$custom: #797522;
$custom-light: #a39c63;
$custom-dark: #000000;
JSON
{
  "hex": "#797522",
  "rgb": {
    "r": 121,
    "g": 117,
    "b": 34
  },
  "hsl": {
    "h": 57.241,
    "s": 56.129,
    "l": 30.392
  },
  "oklch": {
    "l": 0.5498,
    "c": 0.10249,
    "h": 106.6
  },
  "luminance": 0.16903
}

Semantic roles & 50–950 ramp

primary
#797522
secondary
#4B4FAC
accent
#4FDF48
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0E05
muted
#7F7E7A

Preview Lab

Preview with #797522

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

Preview Lab → · Contrast checker → · Palette generator →

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