#797223#797223

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

Color values

HEX#797223
RGBrgb(121, 114, 35)
HSLhsl(55, 55%, 31%)
HSVhsv(55, 71%, 47%)
CMYKcmyk(0%, 5.8%, 71.1%, 52.5%)
CIE-LABlab(47.26, -7.34, 42.74)
CIE-LCHlch(47.26, 43.37, 99.74°)
OKLaboklab(54.29% -0.0242 0.0957)
OKLCHoklch(54.29% 0.099 104.2)
XYZxyz(14.2064, 16.2215, 3.9725)
Luminance0.1622 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797223 #232A79
analogous
#794723 #797223 #557923
triadic
#797223 #237972 #722379
tetradic
#797223 #237947 #232A79 #792355
square
#797223 #237947 #232A79 #792355
split-complementary
#797223 #235579 #472379
monochromatic
#1A1908 #4A4515 #797223 #A89F31 #CBC14B

Accessibility & contrast

On white

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

On black

4.24
#797223 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##797223#FFFFFF#000000##FFFFFF
##7972231.004.954.244.95
#FFFFFF4.951.0021.001.00
#0000004.2421.001.0021.00
##FFFFFF4.951.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #797223;
/* rgb */ color: rgb(121, 114, 35);
/* oklch */ color: oklch(54.3% 0.099 104.2);
Tailwind
colors: {
  custom: {
    50: '#a29a63',
    500: '#797223',
    950: '#000000',
  },
}
SCSS
$custom: #797223;
$custom-light: #a29a63;
$custom-dark: #000000;
JSON
{
  "hex": "#797223",
  "rgb": {
    "r": 121,
    "g": 114,
    "b": 35
  },
  "hsl": {
    "h": 55.116,
    "s": 55.128,
    "l": 30.588
  },
  "oklch": {
    "l": 0.54286,
    "c": 0.09869,
    "h": 104.2
  },
  "luminance": 0.16221
}

Semantic roles & 50–950 ramp

primary
#797223
secondary
#4C54AC
accent
#55DE49
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0E05
muted
#7F7E7A

Preview Lab

Preview with #797223

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

Preview Lab → · Contrast checker → · Palette generator →

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