#797627#797627

#797627 is a mid, moderate yellow. Relative luminance 0.172; OKLCH L 55.3% C 0.100 H 107.1°. Best body text is #FFFFFF at 4.74:1 contrast (WCAG AA passes).

Color values

HEX#797627
RGBrgb(121, 118, 39)
HSLhsl(58, 51%, 31%)
HSVhsv(58, 68%, 47%)
CMYKcmyk(0%, 2.5%, 67.8%, 52.5%)
CIE-LABlab(48.47, -9.32, 42.23)
CIE-LCHlch(48.47, 43.25, 102.45°)
OKLaboklab(55.26% -0.0294 0.0953)
OKLCHoklch(55.26% 0.1 107.1)
XYZxyz(14.7303, 17.1688, 4.4570)
Luminance0.1717 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797627 #272A79
analogous
#794D27 #797627 #537927
triadic
#797627 #277976 #762779
tetradic
#797627 #27794D #272A79 #792753
square
#797627 #27794D #272A79 #792753
split-complementary
#797627 #275379 #4D2779
monochromatic
#1C1C09 #4B4918 #797627 #A7A336 #C8C353

Accessibility & contrast

On white

4.74
#797627 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.43
#797627 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #797627
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797627#FFFFFF#000000##FFFFFF
##7976271.004.744.434.74
#FFFFFF4.741.0021.001.00
#0000004.4321.001.0021.00
##FFFFFF4.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#80711C
Deuteranopia (green-blind)
#82752C
Tritanopia (blue-blind)
#826E66
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #797627;
/* rgb */ color: rgb(121, 118, 39);
/* oklch */ color: oklch(55.3% 0.100 107.1);
Tailwind
colors: {
  custom: {
    50: '#a29d66',
    500: '#797627',
    950: '#000000',
  },
}
SCSS
$custom: #797627;
$custom-light: #a29d66;
$custom-dark: #000000;
JSON
{
  "hex": "#797627",
  "rgb": {
    "r": 121,
    "g": 118,
    "b": 39
  },
  "hsl": {
    "h": 57.805,
    "s": 51.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.55258,
    "c": 0.09972,
    "h": 107.1
  },
  "luminance": 0.17168
}

Semantic roles & 50–950 ramp

primary
#797627
secondary
#5154AB
accent
#52DB4D
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0E06
muted
#7F7E7A

Preview Lab

Preview with #797627

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

Preview Lab → · Contrast checker → · Palette generator →

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