#797228#797228

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

Color values

HEX#797228
RGBrgb(121, 114, 40)
HSLhsl(55, 50%, 32%)
HSVhsv(55, 67%, 47%)
CMYKcmyk(0%, 5.8%, 66.9%, 52.5%)
CIE-LABlab(47.31, -7.02, 40.56)
CIE-LCHlch(47.31, 41.16, 99.82°)
OKLaboklab(54.33% -0.0228 0.0919)
OKLCHoklch(54.33% 0.095 103.9)
XYZxyz(14.2860, 16.2533, 4.3918)
Luminance0.1625 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797228 #282F79
analogous
#794A28 #797228 #587928
triadic
#797228 #287972 #722879
tetradic
#797228 #28794A #282F79 #792858
square
#797228 #28794A #282F79 #792858
split-complementary
#797228 #285879 #4A2879
monochromatic
#1D1B0A #4B4719 #797228 #A79D37 #C7BD55

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##797228#FFFFFF#000000##FFFFFF
##7972281.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)
#7C6E1F
Deuteranopia (green-blind)
#7E722C
Tritanopia (blue-blind)
#826A63
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #797228;
/* rgb */ color: rgb(121, 114, 40);
/* oklch */ color: oklch(54.3% 0.095 103.9);
Tailwind
colors: {
  custom: {
    50: '#a29a66',
    500: '#797228',
    950: '#000000',
  },
}
SCSS
$custom: #797228;
$custom-light: #a29a66;
$custom-dark: #000000;
JSON
{
  "hex": "#797228",
  "rgb": {
    "r": 121,
    "g": 114,
    "b": 40
  },
  "hsl": {
    "h": 54.815,
    "s": 50.311,
    "l": 31.569
  },
  "oklch": {
    "l": 0.54332,
    "c": 0.09471,
    "h": 103.9
  },
  "luminance": 0.16253
}

Semantic roles & 50–950 ramp

primary
#797228
secondary
#525AAB
accent
#5ADA4E
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0E06
muted
#7F7E7A

Preview Lab

Preview with #797228

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

Preview Lab → · Contrast checker → · Palette generator →

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