#797642#797642

#797642 is a mid, moderate yellow. Relative luminance 0.174; OKLCH L 55.6% C 0.072 H 105.6°. Best body text is #FFFFFF at 4.68:1 contrast (WCAG AA passes).

Color values

HEX#797642
RGBrgb(121, 118, 66)
HSLhsl(57, 29%, 37%)
HSVhsv(57, 45%, 47%)
CMYKcmyk(0%, 2.5%, 45.5%, 52.5%)
CIE-LABlab(48.78, -6.95, 28.96)
CIE-LCHlch(48.78, 29.78, 103.50°)
OKLaboklab(55.6% -0.0195 0.0698)
OKLCHoklch(55.6% 0.073 105.6)
XYZxyz(15.3473, 17.4156, 7.7063)
Luminance0.1741 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797642 #424579
analogous
#795B42 #797642 #617942
triadic
#797642 #427976 #764279
tetradic
#797642 #42795B #424579 #794261
square
#797642 #42795B #424579 #794261
split-complementary
#797642 #426179 #5B4279
monochromatic
#2A2917 #514F2C #797642 #A19D58 #B8B57D

Accessibility & contrast

On white

4.68
#797642 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.48
#797642 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #797642
4.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797642#FFFFFF#000000##FFFFFF
##7976421.004.684.484.68
#FFFFFF4.681.0021.001.00
#0000004.4821.001.0021.00
##FFFFFF4.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7E723E
Deuteranopia (green-blind)
#7F7544
Tritanopia (blue-blind)
#80706A
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #797642;
/* rgb */ color: rgb(121, 118, 66);
/* oklch */ color: oklch(55.6% 0.072 105.6);
Tailwind
colors: {
  custom: {
    50: '#a19d77',
    500: '#797642',
    950: '#000000',
  },
}
SCSS
$custom: #797642;
$custom-light: #a19d77;
$custom-dark: #000000;
JSON
{
  "hex": "#797642",
  "rgb": {
    "r": 121,
    "g": 118,
    "b": 66
  },
  "hsl": {
    "h": 56.727,
    "s": 29.412,
    "l": 36.667
  },
  "oklch": {
    "l": 0.55602,
    "c": 0.0725,
    "h": 105.6
  },
  "luminance": 0.17415
}

Semantic roles & 50–950 ramp

primary
#797642
secondary
#7476A3
accent
#68C662
background
#FAF9F7
surface
#F3F2ED
border
#CDCCC8
text
#0F0E09
muted
#7F7E7B

Preview Lab

Preview with #797642

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

Preview Lab → · Contrast checker → · Palette generator →

#797642 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva