#838D27#838D27

#838D27 is a mid, vivid yellow. Relative luminance 0.240; OKLCH L 61.6% C 0.123 H 115.0°. Best body text is #000000 at 5.80:1 contrast (WCAG AA passes).

Color values

HEX#838D27
RGBrgb(131, 141, 39)
HSLhsl(66, 57%, 35%)
HSVhsv(66, 72%, 55%)
CMYKcmyk(7.1%, 0%, 72.3%, 44.7%)
CIE-LABlab(56.11, -17.18, 50.21)
CIE-LCHlch(56.11, 53.07, 108.89°)
OKLaboklab(61.57% -0.052 0.1118)
OKLCHoklch(61.57% 0.123 115)
XYZxyz(19.2517, 24.0219, 5.5416)
Luminance0.2402 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#838D27 #31278D
analogous
#8D6427 #838D27 #508D27
triadic
#838D27 #27838D #8D2783
tetradic
#838D27 #278D64 #31278D #8D2750
square
#838D27 #278D64 #31278D #8D2750
split-complementary
#838D27 #27508D #64278D
monochromatic
#2A2D0C #565D1A #838D27 #B0BD34 #C6D25C

Accessibility & contrast

On white

3.62
#838D27 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.80
#838D27 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #838D27
5.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##838D27#FFFFFF#000000##000000
##838D271.003.625.805.80
#FFFFFF3.621.0021.0021.00
#0000005.8021.001.001.00
##0000005.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#978615
Deuteranopia (green-blind)
#97872F
Tritanopia (blue-blind)
#8C8579
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #838d27;
/* rgb */ color: rgb(131, 141, 39);
/* oklch */ color: oklch(61.6% 0.123 115.0);
Tailwind
colors: {
  custom: {
    50: '#aaae68',
    500: '#838d27',
    950: '#000000',
  },
}
SCSS
$custom: #838d27;
$custom-light: #aaae68;
$custom-dark: #000000;
JSON
{
  "hex": "#838d27",
  "rgb": {
    "r": 131,
    "g": 141,
    "b": 39
  },
  "hsl": {
    "h": 65.882,
    "s": 56.667,
    "l": 35.294
  },
  "oklch": {
    "l": 0.61574,
    "c": 0.12331,
    "h": 115
  },
  "luminance": 0.24022
}

Semantic roles & 50–950 ramp

primary
#838D27
secondary
#6259B7
accent
#48E057
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101007
muted
#7F7F7A

Preview Lab

Preview with #838D27

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

Preview Lab → · Contrast checker → · Palette generator →

#838D27 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva