#797423#797423

#797423 is a mid, moderate yellow. Relative luminance 0.167; OKLCH L 54.8% C 0.101 H 105.8°. Best body text is #FFFFFF at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#797423
RGBrgb(121, 116, 35)
HSLhsl(57, 55%, 31%)
HSVhsv(57, 71%, 47%)
CMYKcmyk(0%, 4.1%, 71.1%, 52.5%)
CIE-LABlab(47.85, -8.46, 43.33)
CIE-LCHlch(47.85, 44.15, 101.04°)
OKLaboklab(54.75% -0.0274 0.0969)
OKLCHoklch(54.75% 0.101 105.8)
XYZxyz(14.4345, 16.6776, 4.0485)
Luminance0.1668 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797423 #232879
analogous
#794923 #797423 #537923
triadic
#797423 #237974 #742379
tetradic
#797423 #237949 #232879 #792353
square
#797423 #237949 #232879 #792353
split-complementary
#797423 #235379 #492379
monochromatic
#1A1908 #4A4615 #797423 #A8A231 #CBC44B

Accessibility & contrast

On white

4.84
#797423 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.34
#797423 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #797423
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797423#FFFFFF#000000##FFFFFF
##7974231.004.844.344.84
#FFFFFF4.841.0021.001.00
#0000004.3421.001.0021.00
##FFFFFF4.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7E7017
Deuteranopia (green-blind)
#807328
Tritanopia (blue-blind)
#826C64
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #797423;
/* rgb */ color: rgb(121, 116, 35);
/* oklch */ color: oklch(54.8% 0.101 105.8);
Tailwind
colors: {
  custom: {
    50: '#a29b63',
    500: '#797423',
    950: '#000000',
  },
}
SCSS
$custom: #797423;
$custom-light: #a29b63;
$custom-dark: #000000;
JSON
{
  "hex": "#797423",
  "rgb": {
    "r": 121,
    "g": 116,
    "b": 35
  },
  "hsl": {
    "h": 56.512,
    "s": 55.128,
    "l": 30.588
  },
  "oklch": {
    "l": 0.54754,
    "c": 0.10071,
    "h": 105.8
  },
  "luminance": 0.16677
}

Semantic roles & 50–950 ramp

primary
#797423
secondary
#4C52AC
accent
#52DE49
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0E05
muted
#7F7E7A

Preview Lab

Preview with #797423

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

Preview Lab → · Contrast checker → · Palette generator →

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