#797252#797252

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

Color values

HEX#797252
RGBrgb(121, 114, 82)
HSLhsl(49, 19%, 40%)
HSVhsv(49, 32%, 47%)
CMYKcmyk(0%, 5.8%, 32.2%, 52.5%)
CIE-LABlab(47.89, -2.66, 18.75)
CIE-LCHlch(47.89, 18.94, 98.08°)
OKLaboklab(54.99% -0.006 0.047)
OKLCHoklch(54.99% 0.047 97.3)
XYZxyz(15.4256, 16.7092, 10.3936)
Luminance0.1671 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797252 #525979
analogous
#795F52 #797252 #6D7952
triadic
#797252 #527972 #725279
tetradic
#797252 #52795F #525979 #79526D
square
#797252 #52795F #525979 #79526D
split-complementary
#797252 #526D79 #5F5279
monochromatic
#302D21 #555039 #797252 #9C936C #B4AE91

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##797252#FFFFFF#000000##FFFFFF
##7972521.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)
#787050
Deuteranopia (green-blind)
#7A7353
Tritanopia (blue-blind)
#7F6D6A
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #797252;
/* rgb */ color: rgb(121, 114, 82);
/* oklch */ color: oklch(55.0% 0.047 97.3);
Tailwind
colors: {
  custom: {
    50: '#a09a83',
    500: '#797252',
    950: '#000000',
  },
}
SCSS
$custom: #797252;
$custom-light: #a09a83;
$custom-dark: #000000;
JSON
{
  "hex": "#797252",
  "rgb": {
    "r": 121,
    "g": 114,
    "b": 82
  },
  "hsl": {
    "h": 49.231,
    "s": 19.212,
    "l": 39.804
  },
  "oklch": {
    "l": 0.54987,
    "c": 0.04737,
    "h": 97.3
  },
  "luminance": 0.16709
}

Semantic roles & 50–950 ramp

primary
#797252
secondary
#858AA2
accent
#7ABC6C
background
#F9F9F8
surface
#F2F2EF
border
#CCCCCA
text
#0F0E0A
muted
#7E7E7C

Preview Lab

Preview with #797252

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

Preview Lab → · Contrast checker → · Palette generator →

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