#797229#797229

#797229 is a mid, moderate yellow. Relative luminance 0.163; OKLCH L 54.3% C 0.094 H 103.8°. Best body text is #FFFFFF at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#797229
RGBrgb(121, 114, 41)
HSLhsl(55, 49%, 32%)
HSVhsv(55, 66%, 47%)
CMYKcmyk(0%, 5.8%, 66.1%, 52.5%)
CIE-LABlab(47.31, -6.95, 40.10)
CIE-LCHlch(47.31, 40.70, 99.84°)
OKLaboklab(54.34% -0.0224 0.0911)
OKLCHoklch(54.34% 0.094 103.8)
XYZxyz(14.3032, 16.2602, 4.4825)
Luminance0.1626 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797229 #293079
analogous
#794A29 #797229 #587929
triadic
#797229 #297972 #722979
tetradic
#797229 #29794A #293079 #792958
square
#797229 #29794A #293079 #792958
split-complementary
#797229 #295879 #4A2979
monochromatic
#1E1C0A #4B471A #797229 #A79D38 #C6BC56

Accessibility & contrast

On white

4.94
#797229 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.25
#797229 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #797229
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797229#FFFFFF#000000##FFFFFF
##7972291.004.944.254.94
#FFFFFF4.941.0021.001.00
#0000004.2521.001.0021.00
##FFFFFF4.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7C6E20
Deuteranopia (green-blind)
#7E722D
Tritanopia (blue-blind)
#826A63
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #797229;
/* rgb */ color: rgb(121, 114, 41);
/* oklch */ color: oklch(54.3% 0.094 103.8);
Tailwind
colors: {
  custom: {
    50: '#a29a67',
    500: '#797229',
    950: '#000000',
  },
}
SCSS
$custom: #797229;
$custom-light: #a29a67;
$custom-dark: #000000;
JSON
{
  "hex": "#797229",
  "rgb": {
    "r": 121,
    "g": 114,
    "b": 41
  },
  "hsl": {
    "h": 54.75,
    "s": 49.383,
    "l": 31.765
  },
  "oklch": {
    "l": 0.54342,
    "c": 0.09385,
    "h": 103.8
  },
  "luminance": 0.1626
}

Semantic roles & 50–950 ramp

primary
#797229
secondary
#535BAB
accent
#5BD94F
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0E06
muted
#7F7E7A

Preview Lab

Preview with #797229

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

Preview Lab → · Contrast checker → · Palette generator →

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