#797235#797235

#797235 is a mid, moderate yellow. Relative luminance 0.164; OKLCH L 54.5% C 0.082 H 102.8°. Best body text is #FFFFFF at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#797235
RGBrgb(121, 114, 53)
HSLhsl(54, 39%, 34%)
HSVhsv(54, 56%, 47%)
CMYKcmyk(0%, 5.8%, 56.2%, 52.5%)
CIE-LABlab(47.44, -6.00, 34.31)
CIE-LCHlch(47.44, 34.83, 99.92°)
OKLaboklab(54.48% -0.0182 0.0804)
OKLCHoklch(54.48% 0.082 102.8)
XYZxyz(14.5455, 16.3571, 5.7585)
Luminance0.1636 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797235 #353C79
analogous
#795035 #797235 #5E7935
triadic
#797235 #357972 #723579
tetradic
#797235 #357950 #353C79 #79355E
square
#797235 #357950 #353C79 #79355E
split-complementary
#797235 #355E79 #503579
monochromatic
#242210 #4E4A22 #797235 #A49A48 #BEB56A

Accessibility & contrast

On white

4.92
#797235 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.27
#797235 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #797235
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797235#FFFFFF#000000##FFFFFF
##7972351.004.924.274.92
#FFFFFF4.921.0021.001.00
#0000004.2721.001.0021.00
##FFFFFF4.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7B6F2F
Deuteranopia (green-blind)
#7E7238
Tritanopia (blue-blind)
#816B64
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #797235;
/* rgb */ color: rgb(121, 114, 53);
/* oklch */ color: oklch(54.5% 0.082 102.8);
Tailwind
colors: {
  custom: {
    50: '#a19a6e',
    500: '#797235',
    950: '#000000',
  },
}
SCSS
$custom: #797235;
$custom-light: #a19a6e;
$custom-dark: #000000;
JSON
{
  "hex": "#797235",
  "rgb": {
    "r": 121,
    "g": 114,
    "b": 53
  },
  "hsl": {
    "h": 53.824,
    "s": 39.08,
    "l": 34.118
  },
  "oklch": {
    "l": 0.54482,
    "c": 0.08245,
    "h": 102.8
  },
  "luminance": 0.16357
}

Semantic roles & 50–950 ramp

primary
#797235
secondary
#636AA6
accent
#65CF59
background
#FAF9F6
surface
#F4F2EC
border
#CECCC7
text
#0F0E07
muted
#7F7E7A

Preview Lab

Preview with #797235

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

Preview Lab → · Contrast checker → · Palette generator →

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