#B8C338#B8C338

#B8C338 is a light, vivid yellow. Relative luminance 0.495; OKLCH L 78.4% C 0.157 H 114.0°. Best body text is #000000 at 10.90:1 contrast (WCAG AA passes).

Color values

HEX#B8C338
RGBrgb(184, 195, 56)
HSLhsl(65, 55%, 49%)
HSVhsv(65, 71%, 76%)
CMYKcmyk(5.6%, 0%, 71.3%, 23.5%)
CIE-LABlab(75.77, -20.86, 64.54)
CIE-LCHlch(75.77, 67.82, 107.91°)
OKLaboklab(78.39% -0.0637 0.1433)
OKLCHoklch(78.39% 0.157 114)
XYZxyz(39.9972, 49.5069, 11.1894)
Luminance0.4951 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B8C338 #4338C3
analogous
#C38938 #B8C338 #73C338
triadic
#B8C338 #38B8C3 #C338B8
tetradic
#B8C338 #38C389 #4338C3 #C33873
square
#B8C338 #38C389 #4338C3 #C33873
split-complementary
#B8C338 #3873C3 #8938C3
monochromatic
#5E641D #8B932A #B8C338 #CAD365 #DBE195

Accessibility & contrast

On white

1.93
#B8C338 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.90
#B8C338 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B8C338
10.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B8C338#FFFFFF#000000##000000
##B8C3381.001.9310.9010.90
#FFFFFF1.931.0021.0021.00
#00000010.9021.001.001.00
##00000010.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#D1B91F
Deuteranopia (green-blind)
#D1BC43
Tritanopia (blue-blind)
#C4B7A8
Achromatopsia (no color)
#BBBBBB

Design tokens & code

CSS
--color: #b8c338;
/* rgb */ color: rgb(184, 195, 56);
/* oklch */ color: oklch(78.4% 0.157 114.0);
Tailwind
colors: {
  custom: {
    50: '#d1d578',
    500: '#b8c338',
    950: '#000000',
  },
}
SCSS
$custom: #b8c338;
$custom-light: #d1d578;
$custom-dark: #000000;
JSON
{
  "hex": "#b8c338",
  "rgb": {
    "r": 184,
    "g": 195,
    "b": 56
  },
  "hsl": {
    "h": 64.748,
    "s": 55.378,
    "l": 49.216
  },
  "oklch": {
    "l": 0.78393,
    "c": 0.15679,
    "h": 114
  },
  "luminance": 0.49506
}

Semantic roles & 50–950 ramp

primary
#B8C338
secondary
#908BCC
accent
#49DF55
background
#FDFDF7
surface
#FAFAEE
border
#D3D3C9
text
#141409
muted
#83837B

Preview Lab

Preview with #B8C338

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

Preview Lab → · Contrast checker → · Palette generator →

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