#B8C040#B8C040

#B8C040 is a light, vivid yellow. Relative luminance 0.483; OKLCH L 77.8% C 0.148 H 112.8°. Best body text is #000000 at 10.65:1 contrast (WCAG AA passes).

Color values

HEX#B8C040
RGBrgb(184, 192, 64)
HSLhsl(64, 50%, 50%)
HSVhsv(64, 67%, 75%)
CMYKcmyk(4.2%, 0%, 66.7%, 24.7%)
CIE-LABlab(74.99, -18.93, 60.77)
CIE-LCHlch(74.99, 63.65, 107.30°)
OKLaboklab(77.79% -0.0575 0.1367)
OKLCHoklch(77.79% 0.148 112.8)
XYZxyz(39.5433, 48.2606, 12.0817)
Luminance0.4826 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B8C040 #4840C0
analogous
#C08840 #B8C040 #78C040
triadic
#B8C040 #40B8C0 #C040B8
tetradic
#B8C040 #40C088 #4840C0 #C04078
square
#B8C040 #40C088 #4840C0 #C04078
split-complementary
#B8C040 #4078C0 #8840C0
monochromatic
#606421 #8C9230 #B8C040 #C9CF6E #DADE9C

Accessibility & contrast

On white

1.97
#B8C040 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.65
#B8C040 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B8C040
10.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B8C040#FFFFFF#000000##000000
##B8C0401.001.9710.6510.65
#FFFFFF1.971.0021.0021.00
#00000010.6521.001.001.00
##00000010.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#CEB72D
Deuteranopia (green-blind)
#CEBA49
Tritanopia (blue-blind)
#C4B5A6
Achromatopsia (no color)
#B9B9B9

Design tokens & code

CSS
--color: #b8c040;
/* rgb */ color: rgb(184, 192, 64);
/* oklch */ color: oklch(77.8% 0.148 112.8);
Tailwind
colors: {
  custom: {
    50: '#d0d27c',
    500: '#b8c040',
    950: '#000000',
  },
}
SCSS
$custom: #b8c040;
$custom-light: #d0d27c;
$custom-dark: #000000;
JSON
{
  "hex": "#b8c040",
  "rgb": {
    "r": 184,
    "g": 192,
    "b": 64
  },
  "hsl": {
    "h": 63.75,
    "s": 50.394,
    "l": 50.196
  },
  "oklch": {
    "l": 0.77787,
    "c": 0.14828,
    "h": 112.8
  },
  "luminance": 0.4826
}

Semantic roles & 50–950 ramp

primary
#B8C040
secondary
#9591CB
accent
#4EDA57
background
#FDFCF7
surface
#FAF9EE
border
#D3D2C9
text
#14140A
muted
#83827C

Preview Lab

Preview with #B8C040

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

Preview Lab → · Contrast checker → · Palette generator →

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