#B7C242#B7C242

#B7C242 is a light, vivid yellow. Relative luminance 0.490; OKLCH L 78.2% C 0.149 H 114.1°. Best body text is #000000 at 10.81:1 contrast (WCAG AA passes).

Color values

HEX#B7C242
RGBrgb(183, 194, 66)
HSLhsl(65, 51%, 51%)
HSVhsv(65, 66%, 76%)
CMYKcmyk(5.7%, 0%, 66%, 23.9%)
CIE-LABlab(75.48, -20.22, 60.46)
CIE-LCHlch(75.48, 63.75, 108.50°)
OKLaboklab(78.17% -0.0609 0.1364)
OKLCHoklch(78.17% 0.149 114.1)
XYZxyz(39.8046, 49.0449, 12.5230)
Luminance0.4904 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B7C242 #4D42C2
analogous
#C28D42 #B7C242 #77C242
triadic
#B7C242 #42B7C2 #C242B7
tetradic
#B7C242 #42C28D #4D42C2 #C24277
square
#B7C242 #42C28D #4D42C2 #C24277
split-complementary
#B7C242 #4277C2 #8D42C2
monochromatic
#626822 #8E9631 #B7C242 #C9D170 #DAE09F

Accessibility & contrast

On white

1.94
#B7C242 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.81
#B7C242 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B7C242
10.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B7C242#FFFFFF#000000##000000
##B7C2421.001.9410.8110.81
#FFFFFF1.941.0021.0021.00
#00000010.8121.001.001.00
##00000010.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#D0B930
Deuteranopia (green-blind)
#CFBB4B
Tritanopia (blue-blind)
#C3B7A8
Achromatopsia (no color)
#BABABA

Design tokens & code

CSS
--color: #b7c242;
/* rgb */ color: rgb(183, 194, 66);
/* oklch */ color: oklch(78.2% 0.149 114.1);
Tailwind
colors: {
  custom: {
    50: '#d0d47d',
    500: '#b7c242',
    950: '#000000',
  },
}
SCSS
$custom: #b7c242;
$custom-light: #d0d47d;
$custom-dark: #000000;
JSON
{
  "hex": "#b7c242",
  "rgb": {
    "r": 183,
    "g": 194,
    "b": 66
  },
  "hsl": {
    "h": 65.156,
    "s": 51.2,
    "l": 50.98
  },
  "oklch": {
    "l": 0.78166,
    "c": 0.14933,
    "h": 114.1
  },
  "luminance": 0.49044
}

Semantic roles & 50–950 ramp

primary
#B7C242
secondary
#9894CC
accent
#4DDB59
background
#FDFCF7
surface
#FAF9EE
border
#D3D2C9
text
#14140A
muted
#83827C

Preview Lab

Preview with #B7C242

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

Preview Lab → · Contrast checker → · Palette generator →

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