#797333#797333

#797333 is a mid, moderate yellow. Relative luminance 0.166; OKLCH L 54.7% C 0.086 H 103.9°. Best body text is #FFFFFF at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#797333
RGBrgb(121, 115, 51)
HSLhsl(55, 41%, 34%)
HSVhsv(55, 58%, 47%)
CMYKcmyk(0%, 5%, 57.9%, 52.5%)
CIE-LABlab(47.71, -6.74, 35.65)
CIE-LCHlch(47.71, 36.28, 100.71°)
OKLaboklab(54.69% -0.0206 0.0831)
OKLCHoklch(54.69% 0.086 103.9)
XYZxyz(14.6139, 16.5659, 5.5591)
Luminance0.1656 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797333 #333979
analogous
#795033 #797333 #5C7933
triadic
#797333 #337973 #733379
tetradic
#797333 #337950 #333979 #79335C
square
#797333 #337950 #333979 #79335C
split-complementary
#797333 #335C79 #503379
monochromatic
#23210F #4E4A21 #797333 #A49C45 #BFB867

Accessibility & contrast

On white

4.87
#797333 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #797333
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797333#FFFFFF#000000##FFFFFF
##7973331.004.874.314.87
#FFFFFF4.871.0021.001.00
#0000004.3121.001.0021.00
##FFFFFF4.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7C6F2D
Deuteranopia (green-blind)
#7E7336
Tritanopia (blue-blind)
#816C65
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #797333;
/* rgb */ color: rgb(121, 115, 51);
/* oklch */ color: oklch(54.7% 0.086 103.9);
Tailwind
colors: {
  custom: {
    50: '#a29b6d',
    500: '#797333',
    950: '#000000',
  },
}
SCSS
$custom: #797333;
$custom-light: #a29b6d;
$custom-dark: #000000;
JSON
{
  "hex": "#797333",
  "rgb": {
    "r": 121,
    "g": 115,
    "b": 51
  },
  "hsl": {
    "h": 54.857,
    "s": 40.698,
    "l": 33.725
  },
  "oklch": {
    "l": 0.54688,
    "c": 0.08557,
    "h": 103.9
  },
  "luminance": 0.16565
}

Semantic roles & 50–950 ramp

primary
#797333
secondary
#6167A7
accent
#62D157
background
#FAF9F6
surface
#F4F2EC
border
#CECCC7
text
#0F0E07
muted
#7F7E7A

Preview Lab

Preview with #797333

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

Preview Lab → · Contrast checker → · Palette generator →

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