#798331#798331

#798331 is a mid, moderate yellow. Relative luminance 0.205; OKLCH L 58.4% C 0.107 H 115.6°. Best body text is #000000 at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#798331
RGBrgb(121, 131, 49)
HSLhsl(67, 46%, 35%)
HSVhsv(67, 63%, 51%)
CMYKcmyk(7.6%, 0%, 62.6%, 48.6%)
CIE-LABlab(52.42, -15.67, 41.88)
CIE-LCHlch(52.42, 44.72, 110.51°)
OKLaboklab(58.44% -0.0461 0.0961)
OKLCHoklch(58.44% 0.107 115.6)
XYZxyz(16.5562, 20.5195, 5.9936)
Luminance0.2052 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798331 #3B3183
analogous
#836431 #798331 #508331
triadic
#798331 #317983 #833179
tetradic
#798331 #318364 #3B3183 #833150
square
#798331 #318364 #3B3183 #833150
split-complementary
#798331 #315083 #643183
monochromatic
#272A10 #505620 #798331 #A2B042 #BBC668

Accessibility & contrast

On white

4.11
#798331 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.10
#798331 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798331
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798331#FFFFFF#000000##000000
##7983311.004.115.105.10
#FFFFFF4.111.0021.0021.00
#0000005.1021.001.001.00
##0000005.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#8C7D27
Deuteranopia (green-blind)
#8B7E36
Tritanopia (blue-blind)
#807C72
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #798331;
/* rgb */ color: rgb(121, 131, 49);
/* oklch */ color: oklch(58.4% 0.107 115.6);
Tailwind
colors: {
  custom: {
    50: '#a2a76d',
    500: '#798331',
    950: '#000000',
  },
}
SCSS
$custom: #798331;
$custom-light: #a2a76d;
$custom-dark: #000000;
JSON
{
  "hex": "#798331",
  "rgb": {
    "r": 121,
    "g": 131,
    "b": 49
  },
  "hsl": {
    "h": 67.317,
    "s": 45.556,
    "l": 35.294
  },
  "oklch": {
    "l": 0.58442,
    "c": 0.10661,
    "h": 115.6
  },
  "luminance": 0.20519
}

Semantic roles & 50–950 ramp

primary
#798331
secondary
#6B62AE
accent
#53D563
background
#FAFAF6
surface
#F4F4EC
border
#CECEC7
text
#0F0F07
muted
#7F7F7A

Preview Lab

Preview with #798331

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

Preview Lab → · Contrast checker → · Palette generator →

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