#797415#797415

#797415 is a mid, moderate yellow. Relative luminance 0.166; OKLCH L 54.7% C 0.109 H 106.3°. Best body text is #FFFFFF at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#797415
RGBrgb(121, 116, 21)
HSLhsl(57, 70%, 28%)
HSVhsv(57, 83%, 47%)
CMYKcmyk(0%, 4.1%, 82.6%, 52.5%)
CIE-LABlab(47.77, -9.13, 48.45)
CIE-LCHlch(47.77, 49.30, 100.67°)
OKLaboklab(54.66% -0.0307 0.105)
OKLCHoklch(54.66% 0.109 106.3)
XYZxyz(14.2665, 16.6104, 3.1640)
Luminance0.1661 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797415 #151A79
analogous
#794215 #797415 #4C7915
triadic
#797415 #157974 #741579
tetradic
#797415 #157942 #151A79 #79154C
square
#797415 #157942 #151A79 #79154C
split-complementary
#797415 #154C79 #421579
monochromatic
#1A1905 #45420C #797415 #ADA61E #DBD22E

Accessibility & contrast

On white

4.86
#797415 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.32
#797415 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #797415
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797415#FFFFFF#000000##FFFFFF
##7974151.004.864.324.86
#FFFFFF4.861.0021.001.00
#0000004.3221.001.0021.00
##FFFFFF4.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F6F00
Deuteranopia (green-blind)
#81731D
Tritanopia (blue-blind)
#836C63
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #797415;
/* rgb */ color: rgb(121, 116, 21);
/* oklch */ color: oklch(54.7% 0.109 106.3);
Tailwind
colors: {
  custom: {
    50: '#a39b5c',
    500: '#797415',
    950: '#000000',
  },
}
SCSS
$custom: #797415;
$custom-light: #a39b5c;
$custom-dark: #000000;
JSON
{
  "hex": "#797415",
  "rgb": {
    "r": 121,
    "g": 116,
    "b": 21
  },
  "hsl": {
    "h": 57,
    "s": 70.423,
    "l": 27.843
  },
  "oklch": {
    "l": 0.54658,
    "c": 0.10941,
    "h": 106.3
  },
  "luminance": 0.1661
}

Semantic roles & 50–950 ramp

primary
#797415
secondary
#3B41AF
accent
#44ED3B
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#100E04
muted
#7F7E79

Preview Lab

Preview with #797415

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

Preview Lab → · Contrast checker → · Palette generator →

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