#797A21#797A21

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

Color values

HEX#797A21
RGBrgb(121, 122, 33)
HSLhsl(61, 57%, 30%)
HSVhsv(61, 73%, 48%)
CMYKcmyk(0.8%, 0%, 73%, 52.2%)
CIE-LABlab(49.61, -11.88, 45.90)
CIE-LCHlch(49.61, 47.41, 104.52°)
OKLaboklab(56.15% -0.0373 0.102)
OKLCHoklch(56.15% 0.109 110.1)
XYZxyz(15.1197, 18.0942, 4.1346)
Luminance0.1809 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797A21 #22217A
analogous
#7A4E21 #797A21 #4C7A21
triadic
#797A21 #21797A #7A2179
tetradic
#797A21 #217A4E #22217A #7A214C
square
#797A21 #217A4E #22217A #7A214C
split-complementary
#797A21 #214C7A #4E217A
monochromatic
#191A07 #494A14 #797A21 #A9AA2E #CCCD48

Accessibility & contrast

On white

4.55
#797A21 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##797A21#FFFFFF#000000##000000
##797A211.004.554.624.62
#FFFFFF4.551.0021.0021.00
#0000004.6221.001.001.00
##0000004.6221.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #797a21;
/* rgb */ color: rgb(121, 122, 33);
/* oklch */ color: oklch(56.2% 0.109 110.1);
Tailwind
colors: {
  custom: {
    50: '#a3a063',
    500: '#797a21',
    950: '#000000',
  },
}
SCSS
$custom: #797a21;
$custom-light: #a3a063;
$custom-dark: #000000;
JSON
{
  "hex": "#797a21",
  "rgb": {
    "r": 121,
    "g": 122,
    "b": 33
  },
  "hsl": {
    "h": 60.674,
    "s": 57.419,
    "l": 30.392
  },
  "oklch": {
    "l": 0.56152,
    "c": 0.10855,
    "h": 110.1
  },
  "luminance": 0.18094
}

Semantic roles & 50–950 ramp

primary
#797A21
secondary
#4B4AAD
accent
#47E149
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0E05
muted
#7F7E7A

Preview Lab

Preview with #797A21

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

Preview Lab → · Contrast checker → · Palette generator →

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