#797915#797915

#797915 is a mid, moderate yellow. Relative luminance 0.178; OKLCH L 55.8% C 0.114 H 109.6°. Best body text is #FFFFFF at 4.61:1 contrast (WCAG AA passes).

Color values

HEX#797915
RGBrgb(121, 121, 21)
HSLhsl(60, 70%, 28%)
HSVhsv(60, 83%, 47%)
CMYKcmyk(0%, 0%, 82.6%, 52.5%)
CIE-LABlab(49.25, -11.88, 49.75)
CIE-LCHlch(49.25, 51.15, 103.43°)
OKLaboklab(55.84% -0.0384 0.1078)
OKLCHoklch(55.84% 0.114 109.6)
XYZxyz(14.8585, 17.7943, 3.3613)
Luminance0.1779 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797915 #151579
analogous
#794715 #797915 #477915
triadic
#797915 #157979 #791579
tetradic
#797915 #157947 #151579 #791547
square
#797915 #157947 #151579 #791547
split-complementary
#797915 #154779 #471579
monochromatic
#1A1A05 #45450C #797915 #ADAD1E #DBDB2E

Accessibility & contrast

On white

4.61
#797915 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.56
#797915 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #797915
4.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797915#FFFFFF#000000##FFFFFF
##7979151.004.614.564.61
#FFFFFF4.611.0021.001.00
#0000004.5621.001.0021.00
##FFFFFF4.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#837300
Deuteranopia (green-blind)
#85761E
Tritanopia (blue-blind)
#827167
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #797915;
/* rgb */ color: rgb(121, 121, 21);
/* oklch */ color: oklch(55.8% 0.114 109.6);
Tailwind
colors: {
  custom: {
    50: '#a39f5d',
    500: '#797915',
    950: '#000000',
  },
}
SCSS
$custom: #797915;
$custom-light: #a39f5d;
$custom-dark: #000000;
JSON
{
  "hex": "#797915",
  "rgb": {
    "r": 121,
    "g": 121,
    "b": 21
  },
  "hsl": {
    "h": 60,
    "s": 70.423,
    "l": 27.843
  },
  "oklch": {
    "l": 0.55839,
    "c": 0.11443,
    "h": 109.6
  },
  "luminance": 0.17794
}

Semantic roles & 50–950 ramp

primary
#797915
secondary
#3B3BAF
accent
#3BED3B
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #797915

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

Preview Lab → · Contrast checker → · Palette generator →

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