#797526#797526

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

Color values

HEX#797526
RGBrgb(121, 117, 38)
HSLhsl(57, 52%, 31%)
HSVhsv(57, 69%, 47%)
CMYKcmyk(0%, 3.3%, 68.6%, 52.5%)
CIE-LABlab(48.17, -8.83, 42.36)
CIE-LCHlch(48.17, 43.27, 101.78°)
OKLaboklab(55.01% -0.0281 0.0954)
OKLCHoklch(55.01% 0.099 106.4)
XYZxyz(14.5968, 16.9280, 4.3319)
Luminance0.1693 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797526 #262A79
analogous
#794B26 #797526 #537926
triadic
#797526 #267975 #752679
tetradic
#797526 #26794B #262A79 #792653
square
#797526 #26794B #262A79 #792653
split-complementary
#797526 #265379 #4B2679
monochromatic
#1C1B09 #4A4817 #797526 #A8A235 #C8C351

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##797526#FFFFFF#000000##FFFFFF
##7975261.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)
#7F711B
Deuteranopia (green-blind)
#81742B
Tritanopia (blue-blind)
#826D65
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #797526;
/* rgb */ color: rgb(121, 117, 38);
/* oklch */ color: oklch(55.0% 0.099 106.4);
Tailwind
colors: {
  custom: {
    50: '#a29c65',
    500: '#797526',
    950: '#000000',
  },
}
SCSS
$custom: #797526;
$custom-light: #a29c65;
$custom-dark: #000000;
JSON
{
  "hex": "#797526",
  "rgb": {
    "r": 121,
    "g": 117,
    "b": 38
  },
  "hsl": {
    "h": 57.108,
    "s": 52.201,
    "l": 31.176
  },
  "oklch": {
    "l": 0.55014,
    "c": 0.09945,
    "h": 106.4
  },
  "luminance": 0.16927
}

Semantic roles & 50–950 ramp

primary
#797526
secondary
#5054AB
accent
#53DC4C
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0E06
muted
#7F7E7A

Preview Lab

Preview with #797526

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

Preview Lab → · Contrast checker → · Palette generator →

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