#797231#797231

#797231 is a mid, moderate yellow. Relative luminance 0.163; OKLCH L 54.4% C 0.086 H 103.2°. Best body text is #FFFFFF at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#797231
RGBrgb(121, 114, 49)
HSLhsl(54, 42%, 33%)
HSVhsv(54, 60%, 47%)
CMYKcmyk(0%, 5.8%, 59.5%, 52.5%)
CIE-LABlab(47.39, -6.35, 36.30)
CIE-LCHlch(47.39, 36.85, 99.92°)
OKLaboklab(54.43% -0.0197 0.0842)
OKLCHoklch(54.43% 0.086 103.2)
XYZxyz(14.4573, 16.3218, 5.2940)
Luminance0.1632 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797231 #313879
analogous
#794E31 #797231 #5C7931
triadic
#797231 #317972 #723179
tetradic
#797231 #31794E #313879 #79315C
square
#797231 #31794E #313879 #79315C
split-complementary
#797231 #315C79 #4E3179
monochromatic
#22200E #4D491F #797231 #A59B43 #C0B764

Accessibility & contrast

On white

4.92
#797231 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.26
#797231 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #797231
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797231#FFFFFF#000000##FFFFFF
##7972311.004.924.264.92
#FFFFFF4.921.0021.001.00
#0000004.2621.001.0021.00
##FFFFFF4.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7C6E2A
Deuteranopia (green-blind)
#7E7234
Tritanopia (blue-blind)
#826B64
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #797231;
/* rgb */ color: rgb(121, 114, 49);
/* oklch */ color: oklch(54.4% 0.086 103.2);
Tailwind
colors: {
  custom: {
    50: '#a29a6c',
    500: '#797231',
    950: '#000000',
  },
}
SCSS
$custom: #797231;
$custom-light: #a29a6c;
$custom-dark: #000000;
JSON
{
  "hex": "#797231",
  "rgb": {
    "r": 121,
    "g": 114,
    "b": 49
  },
  "hsl": {
    "h": 54.167,
    "s": 42.353,
    "l": 33.333
  },
  "oklch": {
    "l": 0.54431,
    "c": 0.08649,
    "h": 103.2
  },
  "luminance": 0.16321
}

Semantic roles & 50–950 ramp

primary
#797231
secondary
#5E65A8
accent
#62D256
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0E07
muted
#7F7E7A

Preview Lab

Preview with #797231

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

Preview Lab → · Contrast checker → · Palette generator →

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