#797528#797528

#797528 is a mid, moderate yellow. Relative luminance 0.169; OKLCH L 55.0% C 0.098 H 106.3°. Best body text is #FFFFFF at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#797528
RGBrgb(121, 117, 40)
HSLhsl(57, 50%, 32%)
HSVhsv(57, 67%, 47%)
CMYKcmyk(0%, 3.3%, 66.9%, 52.5%)
CIE-LABlab(48.19, -8.70, 41.48)
CIE-LCHlch(48.19, 42.39, 101.85°)
OKLaboklab(55.03% -0.0275 0.0939)
OKLCHoklch(55.03% 0.098 106.3)
XYZxyz(14.6300, 16.9412, 4.5064)
Luminance0.1694 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797528 #282C79
analogous
#794D28 #797528 #557928
triadic
#797528 #287975 #752879
tetradic
#797528 #28794D #282C79 #792855
square
#797528 #28794D #282C79 #792855
split-complementary
#797528 #285579 #4D2879
monochromatic
#1D1C0A #4B4919 #797528 #A7A137 #C7C155

Accessibility & contrast

On white

4.79
#797528 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.39
#797528 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #797528
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797528#FFFFFF#000000##FFFFFF
##7975281.004.794.394.79
#FFFFFF4.791.0021.001.00
#0000004.3921.001.0021.00
##FFFFFF4.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F711E
Deuteranopia (green-blind)
#81742D
Tritanopia (blue-blind)
#826D65
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #797528;
/* rgb */ color: rgb(121, 117, 40);
/* oklch */ color: oklch(55.0% 0.098 106.3);
Tailwind
colors: {
  custom: {
    50: '#a29c66',
    500: '#797528',
    950: '#000000',
  },
}
SCSS
$custom: #797528;
$custom-light: #a29c66;
$custom-dark: #000000;
JSON
{
  "hex": "#797528",
  "rgb": {
    "r": 121,
    "g": 117,
    "b": 40
  },
  "hsl": {
    "h": 57.037,
    "s": 50.311,
    "l": 31.569
  },
  "oklch": {
    "l": 0.55033,
    "c": 0.09783,
    "h": 106.3
  },
  "luminance": 0.16941
}

Semantic roles & 50–950 ramp

primary
#797528
secondary
#5256AB
accent
#55DA4E
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0E06
muted
#7F7E7A

Preview Lab

Preview with #797528

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

Preview Lab → · Contrast checker → · Palette generator →

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