#797C23#797C23

#797C23 is a mid, moderate yellow. Relative luminance 0.186; OKLCH L 56.6% C 0.109 H 111.3°. Best body text is #000000 at 4.72:1 contrast (WCAG AA passes).

Color values

HEX#797C23
RGBrgb(121, 124, 35)
HSLhsl(62, 56%, 31%)
HSVhsv(62, 72%, 49%)
CMYKcmyk(2.4%, 0%, 71.8%, 51.4%)
CIE-LABlab(50.22, -12.86, 45.70)
CIE-LCHlch(50.22, 47.47, 105.72°)
OKLaboklab(56.64% -0.0398 0.1019)
OKLCHoklch(56.64% 0.109 111.3)
XYZxyz(15.3967, 18.6020, 4.3693)
Luminance0.1860 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797C23 #26237C
analogous
#7C5223 #797C23 #4C7C23
triadic
#797C23 #23797C #7C2379
tetradic
#797C23 #237C52 #26237C #7C234C
square
#797C23 #237C52 #26237C #7C234C
split-complementary
#797C23 #234C7C #52237C
monochromatic
#1C1D08 #4A4C16 #797C23 #A8AC30 #C8CD4D

Accessibility & contrast

On white

4.45
#797C23 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.72
#797C23 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797C23
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797C23#FFFFFF#000000##000000
##797C231.004.454.724.72
#FFFFFF4.451.0021.0021.00
#0000004.7221.001.001.00
##0000004.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#867614
Deuteranopia (green-blind)
#86792A
Tritanopia (blue-blind)
#82746A
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #797c23;
/* rgb */ color: rgb(121, 124, 35);
/* oklch */ color: oklch(56.6% 0.109 111.3);
Tailwind
colors: {
  custom: {
    50: '#a2a164',
    500: '#797c23',
    950: '#000000',
  },
}
SCSS
$custom: #797c23;
$custom-light: #a2a164;
$custom-dark: #000000;
JSON
{
  "hex": "#797c23",
  "rgb": {
    "r": 121,
    "g": 124,
    "b": 35
  },
  "hsl": {
    "h": 62.022,
    "s": 55.975,
    "l": 31.176
  },
  "oklch": {
    "l": 0.56643,
    "c": 0.10938,
    "h": 111.3
  },
  "luminance": 0.18602
}

Semantic roles & 50–950 ramp

primary
#797C23
secondary
#504CAF
accent
#49DF4E
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0F06
muted
#7F7E7A

Preview Lab

Preview with #797C23

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

Preview Lab → · Contrast checker → · Palette generator →

#797C23 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva