#797245#797245

#797245 is a mid, moderate yellow. Relative luminance 0.165; OKLCH L 54.7% C 0.064 H 100.5°. Best body text is #FFFFFF at 4.88:1 contrast (WCAG AA passes).

Color values

HEX#797245
RGBrgb(121, 114, 69)
HSLhsl(52, 27%, 37%)
HSVhsv(52, 43%, 47%)
CMYKcmyk(0%, 5.8%, 43%, 52.5%)
CIE-LABlab(47.66, -4.34, 25.89)
CIE-LCHlch(47.66, 26.25, 99.52°)
OKLaboklab(54.73% -0.0117 0.0631)
OKLCHoklch(54.73% 0.064 100.5)
XYZxyz(14.9770, 16.5297, 8.0307)
Luminance0.1653 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797245 #454C79
analogous
#795845 #797245 #667945
triadic
#797245 #457972 #724579
tetradic
#797245 #457958 #454C79 #794566
square
#797245 #457958 #454C79 #794566
split-complementary
#797245 #456679 #584579
monochromatic
#2B2919 #524D2F #797245 #A0975B #B7B081

Accessibility & contrast

On white

4.88
#797245 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.31
#797245 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #797245
4.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797245#FFFFFF#000000##FFFFFF
##7972451.004.884.314.88
#FFFFFF4.881.0021.001.00
#0000004.3121.001.0021.00
##FFFFFF4.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7A6F42
Deuteranopia (green-blind)
#7C7247
Tritanopia (blue-blind)
#806C67
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #797245;
/* rgb */ color: rgb(121, 114, 69);
/* oklch */ color: oklch(54.7% 0.064 100.5);
Tailwind
colors: {
  custom: {
    50: '#a19a79',
    500: '#797245',
    950: '#000000',
  },
}
SCSS
$custom: #797245;
$custom-light: #a19a79;
$custom-dark: #000000;
JSON
{
  "hex": "#797245",
  "rgb": {
    "r": 121,
    "g": 114,
    "b": 69
  },
  "hsl": {
    "h": 51.923,
    "s": 27.368,
    "l": 37.255
  },
  "oklch": {
    "l": 0.54731,
    "c": 0.06416,
    "h": 100.5
  },
  "luminance": 0.16529
}

Semantic roles & 50–950 ramp

primary
#797245
secondary
#777DA3
accent
#71C464
background
#FAF9F7
surface
#F3F2ED
border
#CDCCC8
text
#0F0E09
muted
#7F7E7B

Preview Lab

Preview with #797245

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

Preview Lab → · Contrast checker → · Palette generator →

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