#797315#797315

#797315 is a mid, moderate yellow. Relative luminance 0.164; OKLCH L 54.4% C 0.108 H 105.6°. Best body text is #FFFFFF at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#797315
RGBrgb(121, 115, 21)
HSLhsl(56, 70%, 28%)
HSVhsv(56, 83%, 47%)
CMYKcmyk(0%, 5%, 82.6%, 52.5%)
CIE-LABlab(47.47, -8.57, 48.19)
CIE-LCHlch(47.47, 48.95, 100.08°)
OKLaboklab(54.42% -0.0291 0.1045)
OKLCHoklch(54.42% 0.108 105.6)
XYZxyz(14.1519, 16.3811, 3.1257)
Luminance0.1638 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797315 #151B79
analogous
#794115 #797315 #4D7915
triadic
#797315 #157973 #731579
tetradic
#797315 #157941 #151B79 #79154D
square
#797315 #157941 #151B79 #79154D
split-complementary
#797315 #154D79 #411579
monochromatic
#1A1905 #45410C #797315 #ADA51E #DBD02E

Accessibility & contrast

On white

4.91
#797315 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.28
#797315 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #797315
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797315#FFFFFF#000000##FFFFFF
##7973151.004.914.284.91
#FFFFFF4.911.0021.001.00
#0000004.2821.001.0021.00
##FFFFFF4.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7E6E00
Deuteranopia (green-blind)
#80721D
Tritanopia (blue-blind)
#836B62
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #797315;
/* rgb */ color: rgb(121, 115, 21);
/* oklch */ color: oklch(54.4% 0.108 105.6);
Tailwind
colors: {
  custom: {
    50: '#a39b5c',
    500: '#797315',
    950: '#000000',
  },
}
SCSS
$custom: #797315;
$custom-light: #a39b5c;
$custom-dark: #000000;
JSON
{
  "hex": "#797315",
  "rgb": {
    "r": 121,
    "g": 115,
    "b": 21
  },
  "hsl": {
    "h": 56.4,
    "s": 70.423,
    "l": 27.843
  },
  "oklch": {
    "l": 0.54423,
    "c": 0.10844,
    "h": 105.6
  },
  "luminance": 0.16381
}

Semantic roles & 50–950 ramp

primary
#797315
secondary
#3B42AF
accent
#45ED3B
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#100E04
muted
#7F7E79

Preview Lab

Preview with #797315

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

Preview Lab → · Contrast checker → · Palette generator →

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