#796522#796522

#796522 is a mid, moderate yellow. Relative luminance 0.135; OKLCH L 51.3% C 0.088 H 92.2°. Best body text is #FFFFFF at 5.68:1 contrast (WCAG AA passes).

Color values

HEX#796522
RGBrgb(121, 101, 34)
HSLhsl(46, 56%, 30%)
HSVhsv(46, 72%, 47%)
CMYKcmyk(0%, 16.5%, 71.9%, 52.5%)
CIE-LABlab(43.49, 0.05, 39.34)
CIE-LCHlch(43.49, 39.34, 89.92°)
OKLaboklab(51.29% -0.0033 0.0883)
OKLCHoklch(51.29% 0.088 92.2)
XYZxyz(12.8282, 13.4885, 3.4409)
Luminance0.1349 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796522 #223679
analogous
#793922 #796522 #617922
triadic
#796522 #227965 #652279
tetradic
#796522 #227939 #223679 #792261
square
#796522 #227939 #223679 #792261
split-complementary
#796522 #226179 #392279
monochromatic
#191507 #493D15 #796522 #A98D2F #CCAE49

Accessibility & contrast

On white

5.68
#796522 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.70
#796522 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #796522
5.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796522#FFFFFF#000000##FFFFFF
##7965221.005.683.705.68
#FFFFFF5.681.0021.001.00
#0000003.7021.001.0021.00
##FFFFFF5.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#706319
Deuteranopia (green-blind)
#756925
Tritanopia (blue-blind)
#835D57
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #796522;
/* rgb */ color: rgb(121, 101, 34);
/* oklch */ color: oklch(51.3% 0.088 92.2);
Tailwind
colors: {
  custom: {
    50: '#a39061',
    500: '#796522',
    950: '#000000',
  },
}
SCSS
$custom: #796522;
$custom-light: #a39061;
$custom-dark: #000000;
JSON
{
  "hex": "#796522",
  "rgb": {
    "r": 121,
    "g": 101,
    "b": 34
  },
  "hsl": {
    "h": 46.207,
    "s": 56.129,
    "l": 30.392
  },
  "oklch": {
    "l": 0.51293,
    "c": 0.08834,
    "h": 92.2
  },
  "luminance": 0.13488
}

Semantic roles & 50–950 ramp

primary
#796522
secondary
#4B61AC
accent
#6BDF48
background
#FAF8F5
surface
#F4F0EA
border
#CECBC6
text
#0F0C05
muted
#7F7D79

Preview Lab

Preview with #796522

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

Preview Lab → · Contrast checker → · Palette generator →

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