#797B2E#797B2E

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

Color values

HEX#797B2E
RGBrgb(121, 123, 46)
HSLhsl(62, 46%, 33%)
HSVhsv(62, 63%, 48%)
CMYKcmyk(1.6%, 0%, 62.6%, 51.8%)
CIE-LABlab(50.01, -11.59, 40.67)
CIE-LCHlch(50.01, 42.28, 105.90°)
OKLaboklab(56.51% -0.035 0.0931)
OKLCHoklch(56.51% 0.099 110.6)
XYZxyz(15.4617, 18.4285, 5.3268)
Luminance0.1843 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797B2E #302E7B
analogous
#7B562E #797B2E #527B2E
triadic
#797B2E #2E797B #7B2E79
tetradic
#797B2E #2E7B56 #302E7B #7B2E52
square
#797B2E #2E7B56 #302E7B #7B2E52
split-complementary
#797B2E #2E527B #562E7B
monochromatic
#21220D #4D4E1D #797B2E #A5A83F #C1C360

Accessibility & contrast

On white

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

On black

4.69
#797B2E on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797B2E
4.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797B2E#FFFFFF#000000##000000
##797B2E1.004.484.694.69
#FFFFFF4.481.0021.0021.00
#0000004.6921.001.001.00
##0000004.6921.001.001.00

Color blindness preview

Protanopia (red-blind)
#847625
Deuteranopia (green-blind)
#857833
Tritanopia (blue-blind)
#81746B
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #797b2e;
/* rgb */ color: rgb(121, 123, 46);
/* oklch */ color: oklch(56.5% 0.099 110.6);
Tailwind
colors: {
  custom: {
    50: '#a2a16a',
    500: '#797b2e',
    950: '#000000',
  },
}
SCSS
$custom: #797b2e;
$custom-light: #a2a16a;
$custom-dark: #000000;
JSON
{
  "hex": "#797b2e",
  "rgb": {
    "r": 121,
    "g": 123,
    "b": 46
  },
  "hsl": {
    "h": 61.558,
    "s": 45.562,
    "l": 33.137
  },
  "oklch": {
    "l": 0.56507,
    "c": 0.09945,
    "h": 110.6
  },
  "luminance": 0.18428
}

Semantic roles & 50–950 ramp

primary
#797B2E
secondary
#5D5BAA
accent
#53D556
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0E07
muted
#7F7E7A

Preview Lab

Preview with #797B2E

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

Preview Lab → · Contrast checker → · Palette generator →

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