#797125#797125

#797125 is a mid, moderate yellow. Relative luminance 0.160; OKLCH L 54.1% C 0.096 H 103.3°. Best body text is #FFFFFF at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#797125
RGBrgb(121, 113, 37)
HSLhsl(54, 53%, 31%)
HSVhsv(54, 69%, 47%)
CMYKcmyk(0%, 6.6%, 69.4%, 52.5%)
CIE-LABlab(46.99, -6.65, 41.58)
CIE-LCHlch(46.99, 42.11, 99.09°)
OKLaboklab(54.07% -0.0221 0.0936)
OKLCHoklch(54.07% 0.096 103.3)
XYZxyz(14.1248, 16.0093, 4.0960)
Luminance0.1601 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797125 #252D79
analogous
#794725 #797125 #577925
triadic
#797125 #257971 #712579
tetradic
#797125 #257947 #252D79 #792557
square
#797125 #257947 #252D79 #792557
split-complementary
#797125 #255779 #472579
monochromatic
#1B1908 #4A4517 #797125 #A89D33 #C9BE4F

Accessibility & contrast

On white

5.00
#797125 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.20
#797125 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #797125
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797125#FFFFFF#000000##FFFFFF
##7971251.005.004.205.00
#FFFFFF5.001.0021.001.00
#0000004.2021.001.0021.00
##FFFFFF5.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7B6D1B
Deuteranopia (green-blind)
#7E712A
Tritanopia (blue-blind)
#826961
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #797125;
/* rgb */ color: rgb(121, 113, 37);
/* oklch */ color: oklch(54.1% 0.096 103.3);
Tailwind
colors: {
  custom: {
    50: '#a29964',
    500: '#797125',
    950: '#000000',
  },
}
SCSS
$custom: #797125;
$custom-light: #a29964;
$custom-dark: #000000;
JSON
{
  "hex": "#797125",
  "rgb": {
    "r": 121,
    "g": 113,
    "b": 37
  },
  "hsl": {
    "h": 54.286,
    "s": 53.165,
    "l": 30.98
  },
  "oklch": {
    "l": 0.54071,
    "c": 0.09615,
    "h": 103.3
  },
  "luminance": 0.16009
}

Semantic roles & 50–950 ramp

primary
#797125
secondary
#4E57AB
accent
#59DD4B
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0D06
muted
#7F7E7A

Preview Lab

Preview with #797125

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

Preview Lab → · Contrast checker → · Palette generator →

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