#797B2C#797B2C

#797B2C is a mid, moderate yellow. Relative luminance 0.184; OKLCH L 56.5% C 0.101 H 110.6°. Best body text is #000000 at 4.68:1 contrast (WCAG AA passes).

Color values

HEX#797B2C
RGBrgb(121, 123, 44)
HSLhsl(62, 47%, 33%)
HSVhsv(62, 64%, 48%)
CMYKcmyk(1.6%, 0%, 64.2%, 51.8%)
CIE-LABlab(49.99, -11.74, 41.57)
CIE-LCHlch(49.99, 43.20, 105.76°)
OKLaboklab(56.49% -0.0356 0.0947)
OKLCHoklch(56.49% 0.101 110.6)
XYZxyz(15.4232, 18.4131, 5.1240)
Luminance0.1841 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797B2C #2E2C7B
analogous
#7B552C #797B2C #517B2C
triadic
#797B2C #2C797B #7B2C79
tetradic
#797B2C #2C7B55 #2E2C7B #7B2C51
square
#797B2C #2C7B55 #2E2C7B #7B2C51
split-complementary
#797B2C #2C517B #552C7B
monochromatic
#20210C #4D4E1C #797B2C #A5A83C #C2C55D

Accessibility & contrast

On white

4.48
#797B2C on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.68
#797B2C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797B2C
4.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797B2C#FFFFFF#000000##000000
##797B2C1.004.484.684.68
#FFFFFF4.481.0021.0021.00
#0000004.6821.001.001.00
##0000004.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#847622
Deuteranopia (green-blind)
#857831
Tritanopia (blue-blind)
#81746A
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #797b2c;
/* rgb */ color: rgb(121, 123, 44);
/* oklch */ color: oklch(56.5% 0.101 110.6);
Tailwind
colors: {
  custom: {
    50: '#a2a169',
    500: '#797b2c',
    950: '#000000',
  },
}
SCSS
$custom: #797b2c;
$custom-light: #a2a169;
$custom-dark: #000000;
JSON
{
  "hex": "#797b2c",
  "rgb": {
    "r": 121,
    "g": 123,
    "b": 44
  },
  "hsl": {
    "h": 61.519,
    "s": 47.305,
    "l": 32.745
  },
  "oklch": {
    "l": 0.56486,
    "c": 0.1012,
    "h": 110.6
  },
  "luminance": 0.18413
}

Semantic roles & 50–950 ramp

primary
#797B2C
secondary
#5A58AB
accent
#51D754
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0E06
muted
#7F7E7A

Preview Lab

Preview with #797B2C

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

Preview Lab → · Contrast checker → · Palette generator →

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