#797227#797227

#797227 is a mid, moderate yellow. Relative luminance 0.162; OKLCH L 54.3% C 0.096 H 104.0°. Best body text is #FFFFFF at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#797227
RGBrgb(121, 114, 39)
HSLhsl(55, 51%, 31%)
HSVhsv(55, 68%, 47%)
CMYKcmyk(0%, 5.8%, 67.8%, 52.5%)
CIE-LABlab(47.30, -7.09, 41.01)
CIE-LCHlch(47.30, 41.61, 99.81°)
OKLaboklab(54.32% -0.0231 0.0927)
OKLCHoklch(54.32% 0.096 104)
XYZxyz(14.2692, 16.2466, 4.3033)
Luminance0.1625 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797227 #272E79
analogous
#794927 #797227 #577927
triadic
#797227 #277972 #722779
tetradic
#797227 #277949 #272E79 #792757
square
#797227 #277949 #272E79 #792757
split-complementary
#797227 #275779 #492779
monochromatic
#1C1B09 #4B4618 #797227 #A79E36 #C8BE53

Accessibility & contrast

On white

4.94
#797227 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.25
#797227 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #797227
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797227#FFFFFF#000000##FFFFFF
##7972271.004.944.254.94
#FFFFFF4.941.0021.001.00
#0000004.2521.001.0021.00
##FFFFFF4.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7C6E1D
Deuteranopia (green-blind)
#7E722B
Tritanopia (blue-blind)
#826A62
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #797227;
/* rgb */ color: rgb(121, 114, 39);
/* oklch */ color: oklch(54.3% 0.096 104.0);
Tailwind
colors: {
  custom: {
    50: '#a29a65',
    500: '#797227',
    950: '#000000',
  },
}
SCSS
$custom: #797227;
$custom-light: #a29a65;
$custom-dark: #000000;
JSON
{
  "hex": "#797227",
  "rgb": {
    "r": 121,
    "g": 114,
    "b": 39
  },
  "hsl": {
    "h": 54.878,
    "s": 51.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.54322,
    "c": 0.09554,
    "h": 104
  },
  "luminance": 0.16246
}

Semantic roles & 50–950 ramp

primary
#797227
secondary
#5158AB
accent
#59DB4D
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0E06
muted
#7F7E7A

Preview Lab

Preview with #797227

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

Preview Lab → · Contrast checker → · Palette generator →

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