#797115#797115

#797115 is a mid, moderate yellow. Relative luminance 0.159; OKLCH L 54.0% C 0.107 H 104.1°. Best body text is #FFFFFF at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#797115
RGBrgb(121, 113, 21)
HSLhsl(55, 70%, 28%)
HSVhsv(55, 83%, 47%)
CMYKcmyk(0%, 6.6%, 82.6%, 52.5%)
CIE-LABlab(46.88, -7.45, 47.67)
CIE-LCHlch(46.88, 48.25, 98.88°)
OKLaboklab(53.96% -0.026 0.1033)
OKLCHoklch(53.96% 0.107 104.1)
XYZxyz(13.9263, 15.9299, 3.0505)
Luminance0.1593 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797115 #151D79
analogous
#793F15 #797115 #4F7915
triadic
#797115 #157971 #711579
tetradic
#797115 #15793F #151D79 #79154F
square
#797115 #15793F #151D79 #79154F
split-complementary
#797115 #154F79 #3F1579
monochromatic
#1A1805 #45400C #797115 #ADA21E #DBCD2E

Accessibility & contrast

On white

5.02
#797115 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.19
#797115 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #797115
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797115#FFFFFF#000000##FFFFFF
##7971151.005.024.195.02
#FFFFFF5.021.0021.001.00
#0000004.1921.001.0021.00
##FFFFFF5.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7C6D00
Deuteranopia (green-blind)
#7F711D
Tritanopia (blue-blind)
#836860
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #797115;
/* rgb */ color: rgb(121, 113, 21);
/* oklch */ color: oklch(54.0% 0.107 104.1);
Tailwind
colors: {
  custom: {
    50: '#a3995c',
    500: '#797115',
    950: '#000000',
  },
}
SCSS
$custom: #797115;
$custom-light: #a3995c;
$custom-dark: #000000;
JSON
{
  "hex": "#797115",
  "rgb": {
    "r": 121,
    "g": 113,
    "b": 21
  },
  "hsl": {
    "h": 55.2,
    "s": 70.423,
    "l": 27.843
  },
  "oklch": {
    "l": 0.53955,
    "c": 0.10656,
    "h": 104.1
  },
  "luminance": 0.15929
}

Semantic roles & 50–950 ramp

primary
#797115
secondary
#3B44AF
accent
#49ED3B
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#100D04
muted
#7F7E79

Preview Lab

Preview with #797115

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

Preview Lab → · Contrast checker → · Palette generator →

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