#B2C238#B2C238

#B2C238 is a light, vivid yellow. Relative luminance 0.483; OKLCH L 77.7% C 0.158 H 116.0°. Best body text is #000000 at 10.67:1 contrast (WCAG AA passes).

Color values

HEX#B2C238
RGBrgb(178, 194, 56)
HSLhsl(67, 55%, 49%)
HSVhsv(67, 71%, 76%)
CMYKcmyk(8.2%, 0%, 71.1%, 23.9%)
CIE-LABlab(75.04, -22.87, 63.67)
CIE-LCHlch(75.04, 67.65, 109.76°)
OKLaboklab(77.7% -0.0689 0.1416)
OKLCHoklch(77.7% 0.158 116)
XYZxyz(38.3667, 48.3346, 11.0490)
Luminance0.4833 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B2C238 #4838C2
analogous
#C28D38 #B2C238 #6DC238
triadic
#B2C238 #38B2C2 #C238B2
tetradic
#B2C238 #38C28D #4838C2 #C2386D
square
#B2C238 #38C28D #4838C2 #C2386D
split-complementary
#B2C238 #386DC2 #8D38C2
monochromatic
#5B631D #86932A #B2C238 #C6D265 #D7E094

Accessibility & contrast

On white

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

On black

10.67
#B2C238 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B2C238
10.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B2C238#FFFFFF#000000##000000
##B2C2381.001.9710.6710.67
#FFFFFF1.971.0021.0021.00
#00000010.6721.001.001.00
##00000010.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#D0B81F
Deuteranopia (green-blind)
#CEBA43
Tritanopia (blue-blind)
#BDB7A7
Achromatopsia (no color)
#B9B9B9

Design tokens & code

CSS
--color: #b2c238;
/* rgb */ color: rgb(178, 194, 56);
/* oklch */ color: oklch(77.7% 0.158 116.0);
Tailwind
colors: {
  custom: {
    50: '#ccd478',
    500: '#b2c238',
    950: '#000000',
  },
}
SCSS
$custom: #b2c238;
$custom-light: #ccd478;
$custom-dark: #000000;
JSON
{
  "hex": "#b2c238",
  "rgb": {
    "r": 178,
    "g": 194,
    "b": 56
  },
  "hsl": {
    "h": 66.957,
    "s": 55.2,
    "l": 49.02
  },
  "oklch": {
    "l": 0.77695,
    "c": 0.15753,
    "h": 116
  },
  "luminance": 0.48334
}

Semantic roles & 50–950 ramp

primary
#B2C238
secondary
#928ACB
accent
#49DF5B
background
#FDFCF7
surface
#FAF9EE
border
#D3D2C9
text
#141409
muted
#83827B

Preview Lab

Preview with #B2C238

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

Preview Lab → · Contrast checker → · Palette generator →

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