#798237#798237

#798237 is a mid, moderate yellow. Relative luminance 0.203; OKLCH L 58.3% C 0.100 H 115.3°. Best body text is #000000 at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#798237
RGBrgb(121, 130, 55)
HSLhsl(67, 41%, 36%)
HSVhsv(67, 58%, 51%)
CMYKcmyk(6.9%, 0%, 57.7%, 49%)
CIE-LABlab(52.18, -14.64, 38.75)
CIE-LCHlch(52.18, 41.42, 110.70°)
OKLaboklab(58.27% -0.0426 0.0902)
OKLCHoklch(58.27% 0.1 115.3)
XYZxyz(16.5577, 20.3063, 6.6609)
Luminance0.2031 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798237 #403782
analogous
#826637 #798237 #548237
triadic
#798237 #377982 #823779
tetradic
#798237 #378266 #403782 #823754
square
#798237 #378266 #403782 #823754
split-complementary
#798237 #375482 #663782
monochromatic
#292C13 #515725 #798237 #A1AD49 #B9C371

Accessibility & contrast

On white

4.15
#798237 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.06
#798237 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798237
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798237#FFFFFF#000000##000000
##7982371.004.155.065.06
#FFFFFF4.151.0021.0021.00
#0000005.0621.001.001.00
##0000005.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#8B7C2F
Deuteranopia (green-blind)
#8A7D3B
Tritanopia (blue-blind)
#807B72
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #798237;
/* rgb */ color: rgb(121, 130, 55);
/* oklch */ color: oklch(58.3% 0.100 115.3);
Tailwind
colors: {
  custom: {
    50: '#a1a671',
    500: '#798237',
    950: '#000000',
  },
}
SCSS
$custom: #798237;
$custom-light: #a1a671;
$custom-dark: #000000;
JSON
{
  "hex": "#798237",
  "rgb": {
    "r": 121,
    "g": 130,
    "b": 55
  },
  "hsl": {
    "h": 67.2,
    "s": 40.541,
    "l": 36.275
  },
  "oklch": {
    "l": 0.58271,
    "c": 0.09975,
    "h": 115.3
  },
  "luminance": 0.20306
}

Semantic roles & 50–950 ramp

primary
#798237
secondary
#7169AB
accent
#57D066
background
#FAFAF6
surface
#F4F4EC
border
#CECEC7
text
#0F0F08
muted
#7F7F7B

Preview Lab

Preview with #798237

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

Preview Lab → · Contrast checker → · Palette generator →

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