#797225#797225

#797225 is a mid, moderate yellow. Relative luminance 0.162; OKLCH L 54.3% C 0.097 H 104.1°. Best body text is #FFFFFF at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#797225
RGBrgb(121, 114, 37)
HSLhsl(55, 53%, 31%)
HSVhsv(55, 69%, 47%)
CMYKcmyk(0%, 5.8%, 69.4%, 52.5%)
CIE-LABlab(47.28, -7.22, 41.89)
CIE-LCHlch(47.28, 42.50, 99.78°)
OKLaboklab(54.3% -0.0237 0.0942)
OKLCHoklch(54.3% 0.097 104.1)
XYZxyz(14.2370, 16.2337, 4.1334)
Luminance0.1623 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797225 #252C79
analogous
#794825 #797225 #567925
triadic
#797225 #257972 #722579
tetradic
#797225 #257948 #252C79 #792556
square
#797225 #257948 #252C79 #792556
split-complementary
#797225 #255679 #482579
monochromatic
#1B1A08 #4A4617 #797225 #A89E33 #C9BF4F

Accessibility & contrast

On white

4.95
#797225 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #797225
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797225#FFFFFF#000000##FFFFFF
##7972251.004.954.254.95
#FFFFFF4.951.0021.001.00
#0000004.2521.001.0021.00
##FFFFFF4.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7C6E1A
Deuteranopia (green-blind)
#7F722A
Tritanopia (blue-blind)
#826A62
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #797225;
/* rgb */ color: rgb(121, 114, 37);
/* oklch */ color: oklch(54.3% 0.097 104.1);
Tailwind
colors: {
  custom: {
    50: '#a29a64',
    500: '#797225',
    950: '#000000',
  },
}
SCSS
$custom: #797225;
$custom-light: #a29a64;
$custom-dark: #000000;
JSON
{
  "hex": "#797225",
  "rgb": {
    "r": 121,
    "g": 114,
    "b": 37
  },
  "hsl": {
    "h": 55,
    "s": 53.165,
    "l": 30.98
  },
  "oklch": {
    "l": 0.54304,
    "c": 0.09715,
    "h": 104.1
  },
  "luminance": 0.16233
}

Semantic roles & 50–950 ramp

primary
#797225
secondary
#4E56AB
accent
#57DD4B
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0E06
muted
#7F7E7A

Preview Lab

Preview with #797225

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

Preview Lab → · Contrast checker → · Palette generator →

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