#797815#797815

#797815 is a mid, moderate yellow. Relative luminance 0.176; OKLCH L 55.6% C 0.113 H 109.0°. Best body text is #FFFFFF at 4.66:1 contrast (WCAG AA passes).

Color values

HEX#797815
RGBrgb(121, 120, 21)
HSLhsl(59, 70%, 28%)
HSVhsv(59, 83%, 47%)
CMYKcmyk(0%, 0.8%, 82.6%, 52.5%)
CIE-LABlab(48.95, -11.34, 49.49)
CIE-LCHlch(48.95, 50.77, 102.90°)
OKLaboklab(55.6% -0.0369 0.1072)
OKLCHoklch(55.6% 0.113 109)
XYZxyz(14.7376, 17.5525, 3.3210)
Luminance0.1755 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797815 #151679
analogous
#794615 #797815 #487915
triadic
#797815 #157978 #781579
tetradic
#797815 #157946 #151679 #791548
square
#797815 #157946 #151679 #791548
split-complementary
#797815 #154879 #461579
monochromatic
#1A1A05 #45440C #797815 #ADAC1E #DBD92E

Accessibility & contrast

On white

4.66
#797815 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.51
#797815 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #797815
4.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797815#FFFFFF#000000##FFFFFF
##7978151.004.664.514.66
#FFFFFF4.661.0021.001.00
#0000004.5121.001.0021.00
##FFFFFF4.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#837300
Deuteranopia (green-blind)
#84761E
Tritanopia (blue-blind)
#827066
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #797815;
/* rgb */ color: rgb(121, 120, 21);
/* oklch */ color: oklch(55.6% 0.113 109.0);
Tailwind
colors: {
  custom: {
    50: '#a39e5d',
    500: '#797815',
    950: '#000000',
  },
}
SCSS
$custom: #797815;
$custom-light: #a39e5d;
$custom-dark: #000000;
JSON
{
  "hex": "#797815",
  "rgb": {
    "r": 121,
    "g": 120,
    "b": 21
  },
  "hsl": {
    "h": 59.4,
    "s": 70.423,
    "l": 27.843
  },
  "oklch": {
    "l": 0.55602,
    "c": 0.1134,
    "h": 109
  },
  "luminance": 0.17552
}

Semantic roles & 50–950 ramp

primary
#797815
secondary
#3B3CAF
accent
#3CED3B
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #797815

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

Preview Lab → · Contrast checker → · Palette generator →

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