#797F2E#797F2E

#797F2E is a mid, moderate yellow. Relative luminance 0.194; OKLCH L 57.5% C 0.104 H 113.2°. Best body text is #000000 at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#797F2E
RGBrgb(121, 127, 46)
HSLhsl(64, 47%, 34%)
HSVhsv(64, 64%, 50%)
CMYKcmyk(4.7%, 0%, 63.8%, 50.2%)
CIE-LABlab(51.20, -13.76, 41.95)
CIE-LCHlch(51.20, 44.15, 108.16°)
OKLaboklab(57.46% -0.0411 0.0958)
OKLCHoklch(57.46% 0.104 113.2)
XYZxyz(15.9681, 19.4413, 5.4956)
Luminance0.1944 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797F2E #342E7F
analogous
#7F5D2E #797F2E #517F2E
triadic
#797F2E #2E797F #7F2E79
tetradic
#797F2E #2E7F5D #342E7F #7F2E51
square
#797F2E #2E7F5D #342E7F #7F2E51
split-complementary
#797F2E #2E517F #5D2E7F
monochromatic
#23250D #4E521E #797F2E #A4AC3E #BEC661

Accessibility & contrast

On white

4.30
#797F2E on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.89
#797F2E on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797F2E
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797F2E#FFFFFF#000000##000000
##797F2E1.004.304.894.89
#FFFFFF4.301.0021.0021.00
#0000004.8921.001.001.00
##0000004.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#887924
Deuteranopia (green-blind)
#887B33
Tritanopia (blue-blind)
#81786E
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #797f2e;
/* rgb */ color: rgb(121, 127, 46);
/* oklch */ color: oklch(57.5% 0.104 113.2);
Tailwind
colors: {
  custom: {
    50: '#a2a46b',
    500: '#797f2e',
    950: '#000000',
  },
}
SCSS
$custom: #797f2e;
$custom-light: #a2a46b;
$custom-dark: #000000;
JSON
{
  "hex": "#797f2e",
  "rgb": {
    "r": 121,
    "g": 127,
    "b": 46
  },
  "hsl": {
    "h": 64.444,
    "s": 46.821,
    "l": 33.922
  },
  "oklch": {
    "l": 0.57456,
    "c": 0.10425,
    "h": 113.2
  },
  "luminance": 0.19441
}

Semantic roles & 50–950 ramp

primary
#797F2E
secondary
#625CAD
accent
#51D65B
background
#FAFAF6
surface
#F4F3EB
border
#CECDC6
text
#0F0F07
muted
#7F7F7A

Preview Lab

Preview with #797F2E

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

Preview Lab → · Contrast checker → · Palette generator →

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