#797631#797631

#797631 is a mid, moderate yellow. Relative luminance 0.172; OKLCH L 55.4% C 0.091 H 106.7°. Best body text is #FFFFFF at 4.72:1 contrast (WCAG AA passes).

Color values

HEX#797631
RGBrgb(121, 118, 49)
HSLhsl(58, 42%, 33%)
HSVhsv(58, 60%, 47%)
CMYKcmyk(0%, 2.5%, 59.5%, 52.5%)
CIE-LABlab(48.57, -8.59, 37.62)
CIE-LCHlch(48.57, 38.59, 102.86°)
OKLaboklab(55.36% -0.0261 0.087)
OKLCHoklch(55.36% 0.091 106.7)
XYZxyz(14.9184, 17.2440, 5.4477)
Luminance0.1724 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797631 #313479
analogous
#795231 #797631 #587931
triadic
#797631 #317976 #763179
tetradic
#797631 #317952 #313479 #793158
square
#797631 #317952 #313479 #793158
split-complementary
#797631 #315879 #523179
monochromatic
#22210E #4D4C1F #797631 #A5A043 #C0BC64

Accessibility & contrast

On white

4.72
#797631 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.45
#797631 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #797631
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797631#FFFFFF#000000##FFFFFF
##7976311.004.724.454.72
#FFFFFF4.721.0021.001.00
#0000004.4521.001.0021.00
##FFFFFF4.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F722A
Deuteranopia (green-blind)
#817535
Tritanopia (blue-blind)
#816F67
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #797631;
/* rgb */ color: rgb(121, 118, 49);
/* oklch */ color: oklch(55.4% 0.091 106.7);
Tailwind
colors: {
  custom: {
    50: '#a29d6c',
    500: '#797631',
    950: '#000000',
  },
}
SCSS
$custom: #797631;
$custom-light: #a29d6c;
$custom-dark: #000000;
JSON
{
  "hex": "#797631",
  "rgb": {
    "r": 121,
    "g": 118,
    "b": 49
  },
  "hsl": {
    "h": 57.5,
    "s": 42.353,
    "l": 33.333
  },
  "oklch": {
    "l": 0.55363,
    "c": 0.09088,
    "h": 106.7
  },
  "luminance": 0.17244
}

Semantic roles & 50–950 ramp

primary
#797631
secondary
#5E61A8
accent
#5BD256
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0E07
muted
#7F7E7A

Preview Lab

Preview with #797631

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

Preview Lab → · Contrast checker → · Palette generator →

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