#797A15#797A15

#797A15 is a mid, moderate yellow. Relative luminance 0.180; OKLCH L 56.1% C 0.115 H 110.2°. Best body text is #000000 at 4.61:1 contrast (WCAG AA passes).

Color values

HEX#797A15
RGBrgb(121, 122, 21)
HSLhsl(61, 71%, 28%)
HSVhsv(61, 83%, 48%)
CMYKcmyk(0.8%, 0%, 82.8%, 52.2%)
CIE-LABlab(49.54, -12.43, 50.01)
CIE-LCHlch(49.54, 51.53, 103.95°)
OKLaboklab(56.08% -0.0399 0.1084)
OKLCHoklch(56.08% 0.115 110.2)
XYZxyz(14.9806, 18.0386, 3.4020)
Luminance0.1804 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797A15 #16157A
analogous
#7A4815 #797A15 #467A15
triadic
#797A15 #15797A #7A1579
tetradic
#797A15 #157A48 #16157A #7A1546
square
#797A15 #157A48 #16157A #7A1546
split-complementary
#797A15 #15467A #48157A
monochromatic
#1A1A04 #45460C #797A15 #ADAE1E #D9DB2E

Accessibility & contrast

On white

4.56
#797A15 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.61
#797A15 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797A15
4.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797A15#FFFFFF#000000##000000
##797A151.004.564.614.61
#FFFFFF4.561.0021.0021.00
#0000004.6121.001.001.00
##0000004.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#847400
Deuteranopia (green-blind)
#85771F
Tritanopia (blue-blind)
#827268
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #797a15;
/* rgb */ color: rgb(121, 122, 21);
/* oklch */ color: oklch(56.1% 0.115 110.2);
Tailwind
colors: {
  custom: {
    50: '#a3a05d',
    500: '#797a15',
    950: '#000000',
  },
}
SCSS
$custom: #797a15;
$custom-light: #a3a05d;
$custom-dark: #000000;
JSON
{
  "hex": "#797a15",
  "rgb": {
    "r": 121,
    "g": 122,
    "b": 21
  },
  "hsl": {
    "h": 60.594,
    "s": 70.629,
    "l": 28.039
  },
  "oklch": {
    "l": 0.56077,
    "c": 0.11547,
    "h": 110.2
  },
  "luminance": 0.18038
}

Semantic roles & 50–950 ramp

primary
#797A15
secondary
#3D3BAF
accent
#3AED3C
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #797A15

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

Preview Lab → · Contrast checker → · Palette generator →

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