#797F2D#797F2D

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

Color values

HEX#797F2D
RGBrgb(121, 127, 45)
HSLhsl(64, 48%, 34%)
HSVhsv(64, 65%, 50%)
CMYKcmyk(4.7%, 0%, 64.6%, 50.2%)
CIE-LABlab(51.19, -13.83, 42.40)
CIE-LCHlch(51.19, 44.60, 108.07°)
OKLaboklab(57.45% -0.0414 0.0966)
OKLCHoklch(57.45% 0.105 113.2)
XYZxyz(15.9486, 19.4335, 5.3930)
Luminance0.1943 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797F2D #332D7F
analogous
#7F5C2D #797F2D #507F2D
triadic
#797F2D #2D797F #7F2D79
tetradic
#797F2D #2D7F5C #332D7F #7F2D50
square
#797F2D #2D7F5C #332D7F #7F2D50
split-complementary
#797F2D #2D507F #5C2D7F
monochromatic
#23250D #4E521D #797F2D #A4AC3D #BFC760

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##797F2D#FFFFFF#000000##000000
##797F2D1.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)
#887923
Deuteranopia (green-blind)
#887B32
Tritanopia (blue-blind)
#81786E
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #797f2d;
/* rgb */ color: rgb(121, 127, 45);
/* oklch */ color: oklch(57.4% 0.105 113.2);
Tailwind
colors: {
  custom: {
    50: '#a2a46a',
    500: '#797f2d',
    950: '#000000',
  },
}
SCSS
$custom: #797f2d;
$custom-light: #a2a46a;
$custom-dark: #000000;
JSON
{
  "hex": "#797f2d",
  "rgb": {
    "r": 121,
    "g": 127,
    "b": 45
  },
  "hsl": {
    "h": 64.39,
    "s": 47.674,
    "l": 33.725
  },
  "oklch": {
    "l": 0.57446,
    "c": 0.10511,
    "h": 113.2
  },
  "luminance": 0.19433
}

Semantic roles & 50–950 ramp

primary
#797F2D
secondary
#615BAD
accent
#51D75A
background
#FAFAF6
surface
#F4F3EB
border
#CECDC6
text
#0F0F07
muted
#7F7F7A

Preview Lab

Preview with #797F2D

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

Preview Lab → · Contrast checker → · Palette generator →

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