#AFC237#AFC237

#AFC237 is a light, vivid yellow. Relative luminance 0.480; OKLCH L 77.5% C 0.159 H 117.1°. Best body text is #000000 at 10.59:1 contrast (WCAG AA passes).

Color values

HEX#AFC237
RGBrgb(175, 194, 55)
HSLhsl(68, 56%, 49%)
HSVhsv(68, 72%, 76%)
CMYKcmyk(9.8%, 0%, 71.6%, 23.9%)
CIE-LABlab(74.81, -24.17, 63.73)
CIE-LCHlch(74.81, 68.16, 110.77°)
OKLaboklab(77.46% -0.0725 0.1417)
OKLCHoklch(77.46% 0.159 117.1)
XYZxyz(37.6615, 47.9738, 10.8896)
Luminance0.4797 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFC237 #4A37C2
analogous
#C29037 #AFC237 #6AC237
triadic
#AFC237 #37AFC2 #C237AF
tetradic
#AFC237 #37C290 #4A37C2 #C2376A
square
#AFC237 #37C290 #4A37C2 #C2376A
split-complementary
#AFC237 #376AC2 #9037C2
monochromatic
#59631C #849229 #AFC237 #C4D363 #D6E093

Accessibility & contrast

On white

1.98
#AFC237 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.59
#AFC237 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFC237
10.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFC237#FFFFFF#000000##000000
##AFC2371.001.9810.5910.59
#FFFFFF1.981.0021.0021.00
#00000010.5921.001.001.00
##00000010.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#CFB81D
Deuteranopia (green-blind)
#CDB942
Tritanopia (blue-blind)
#BAB7A7
Achromatopsia (no color)
#B8B8B8

Design tokens & code

CSS
--color: #afc237;
/* rgb */ color: rgb(175, 194, 55);
/* oklch */ color: oklch(77.5% 0.159 117.1);
Tailwind
colors: {
  custom: {
    50: '#cad477',
    500: '#afc237',
    950: '#000000',
  },
}
SCSS
$custom: #afc237;
$custom-light: #cad477;
$custom-dark: #000000;
JSON
{
  "hex": "#afc237",
  "rgb": {
    "r": 175,
    "g": 194,
    "b": 55
  },
  "hsl": {
    "h": 68.201,
    "s": 55.823,
    "l": 48.824
  },
  "oklch": {
    "l": 0.77455,
    "c": 0.15914,
    "h": 117.1
  },
  "luminance": 0.47973
}

Semantic roles & 50–950 ramp

primary
#AFC237
secondary
#9289CB
accent
#49DF5D
background
#FCFCF7
surface
#F9F9EE
border
#D2D2C9
text
#141409
muted
#82827B

Preview Lab

Preview with #AFC237

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

Preview Lab → · Contrast checker → · Palette generator →

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