#797A23#797A23

#797A23 is a mid, moderate yellow. Relative luminance 0.181; OKLCH L 56.2% C 0.107 H 110.1°. Best body text is #000000 at 4.62:1 contrast (WCAG AA passes).

Color values

HEX#797A23
RGBrgb(121, 122, 35)
HSLhsl(61, 55%, 31%)
HSVhsv(61, 71%, 48%)
CMYKcmyk(0.8%, 0%, 71.3%, 52.2%)
CIE-LABlab(49.62, -11.77, 45.11)
CIE-LCHlch(49.62, 46.62, 104.63°)
OKLaboklab(56.17% -0.0367 0.1007)
OKLCHoklch(56.17% 0.107 110.1)
XYZxyz(15.1486, 18.1058, 4.2866)
Luminance0.1810 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797A23 #24237A
analogous
#7A4F23 #797A23 #4D7A23
triadic
#797A23 #23797A #7A2379
tetradic
#797A23 #237A4F #24237A #7A234D
square
#797A23 #237A4F #24237A #7A234D
split-complementary
#797A23 #234D7A #4F237A
monochromatic
#1B1B08 #4A4A15 #797A23 #A8AA31 #CACC4C

Accessibility & contrast

On white

4.54
#797A23 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.62
#797A23 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797A23
4.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797A23#FFFFFF#000000##000000
##797A231.004.544.624.62
#FFFFFF4.541.0021.0021.00
#0000004.6221.001.001.00
##0000004.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#847515
Deuteranopia (green-blind)
#857729
Tritanopia (blue-blind)
#827269
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #797a23;
/* rgb */ color: rgb(121, 122, 35);
/* oklch */ color: oklch(56.2% 0.107 110.1);
Tailwind
colors: {
  custom: {
    50: '#a2a064',
    500: '#797a23',
    950: '#000000',
  },
}
SCSS
$custom: #797a23;
$custom-light: #a2a064;
$custom-dark: #000000;
JSON
{
  "hex": "#797a23",
  "rgb": {
    "r": 121,
    "g": 122,
    "b": 35
  },
  "hsl": {
    "h": 60.69,
    "s": 55.414,
    "l": 30.784
  },
  "oklch": {
    "l": 0.56168,
    "c": 0.10715,
    "h": 110.1
  },
  "luminance": 0.18105
}

Semantic roles & 50–950 ramp

primary
#797A23
secondary
#4D4CAD
accent
#49DF4B
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0E06
muted
#7F7E7A

Preview Lab

Preview with #797A23

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

Preview Lab → · Contrast checker → · Palette generator →

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