#797238#797238

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

Color values

HEX#797238
RGBrgb(121, 114, 56)
HSLhsl(54, 37%, 35%)
HSVhsv(54, 54%, 47%)
CMYKcmyk(0%, 5.8%, 53.7%, 52.5%)
CIE-LABlab(47.48, -5.72, 32.77)
CIE-LCHlch(47.48, 33.27, 99.91°)
OKLaboklab(54.52% -0.0171 0.0774)
OKLCHoklch(54.52% 0.079 102.5)
XYZxyz(14.6167, 16.3856, 6.1334)
Luminance0.1638 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797238 #383F79
analogous
#795138 #797238 #607938
triadic
#797238 #387972 #723879
tetradic
#797238 #387951 #383F79 #793860
square
#797238 #387951 #383F79 #793860
split-complementary
#797238 #386079 #513879
monochromatic
#252311 #4F4B25 #797238 #A3994B #BCB46F

Accessibility & contrast

On white

4.91
#797238 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.28
#797238 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #797238
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797238#FFFFFF#000000##FFFFFF
##7972381.004.914.284.91
#FFFFFF4.911.0021.001.00
#0000004.2821.001.0021.00
##FFFFFF4.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7B6F33
Deuteranopia (green-blind)
#7D723B
Tritanopia (blue-blind)
#816B65
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #797238;
/* rgb */ color: rgb(121, 114, 56);
/* oklch */ color: oklch(54.5% 0.079 102.5);
Tailwind
colors: {
  custom: {
    50: '#a19a70',
    500: '#797238',
    950: '#000000',
  },
}
SCSS
$custom: #797238;
$custom-light: #a19a70;
$custom-dark: #000000;
JSON
{
  "hex": "#797238",
  "rgb": {
    "r": 121,
    "g": 114,
    "b": 56
  },
  "hsl": {
    "h": 53.538,
    "s": 36.723,
    "l": 34.706
  },
  "oklch": {
    "l": 0.54523,
    "c": 0.07926,
    "h": 102.5
  },
  "luminance": 0.16385
}

Semantic roles & 50–950 ramp

primary
#797238
secondary
#676EA5
accent
#67CD5B
background
#FAF9F6
surface
#F4F2EC
border
#CECCC7
text
#0F0E07
muted
#7F7E7A

Preview Lab

Preview with #797238

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

Preview Lab → · Contrast checker → · Palette generator →

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