#797251#797251

#797251 is a mid, muted yellow. Relative luminance 0.167; OKLCH L 55.0% C 0.049 H 97.6°. Best body text is #FFFFFF at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#797251
RGBrgb(121, 114, 81)
HSLhsl(50, 20%, 40%)
HSVhsv(50, 33%, 47%)
CMYKcmyk(0%, 5.8%, 33.1%, 52.5%)
CIE-LABlab(47.87, -2.80, 19.31)
CIE-LCHlch(47.87, 19.51, 98.25°)
OKLaboklab(54.97% -0.0064 0.0483)
OKLCHoklch(54.97% 0.049 97.6)
XYZxyz(15.3878, 16.6940, 10.1947)
Luminance0.1669 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797251 #515879
analogous
#795E51 #797251 #6C7951
triadic
#797251 #517972 #725179
tetradic
#797251 #51795E #515879 #79516C
square
#797251 #51795E #515879 #79516C
split-complementary
#797251 #516C79 #5E5179
monochromatic
#302D20 #544F38 #797251 #9C936B #B5AE90

Accessibility & contrast

On white

4.84
#797251 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.34
#797251 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #797251
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797251#FFFFFF#000000##FFFFFF
##7972511.004.844.344.84
#FFFFFF4.841.0021.001.00
#0000004.3421.001.0021.00
##FFFFFF4.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#78704F
Deuteranopia (green-blind)
#7A7352
Tritanopia (blue-blind)
#7F6D69
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #797251;
/* rgb */ color: rgb(121, 114, 81);
/* oklch */ color: oklch(55.0% 0.049 97.6);
Tailwind
colors: {
  custom: {
    50: '#a09a82',
    500: '#797251',
    950: '#000000',
  },
}
SCSS
$custom: #797251;
$custom-light: #a09a82;
$custom-dark: #000000;
JSON
{
  "hex": "#797251",
  "rgb": {
    "r": 121,
    "g": 114,
    "b": 81
  },
  "hsl": {
    "h": 49.5,
    "s": 19.802,
    "l": 39.608
  },
  "oklch": {
    "l": 0.54966,
    "c": 0.04871,
    "h": 97.6
  },
  "luminance": 0.16694
}

Semantic roles & 50–950 ramp

primary
#797251
secondary
#8489A2
accent
#7ABC6B
background
#F9F9F7
surface
#F2F2EE
border
#CCCCC9
text
#0F0E0A
muted
#7E7E7C

Preview Lab

Preview with #797251

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

Preview Lab → · Contrast checker → · Palette generator →

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