#AFC246#AFC246

#AFC246 is a light, vivid yellow. Relative luminance 0.481; OKLCH L 77.6% C 0.149 H 117.4°. Best body text is #000000 at 10.63:1 contrast (WCAG AA passes).

Color values

HEX#AFC246
RGBrgb(175, 194, 70)
HSLhsl(69, 50%, 52%)
HSVhsv(69, 64%, 76%)
CMYKcmyk(9.8%, 0%, 63.9%, 23.9%)
CIE-LABlab(74.91, -23.28, 58.07)
CIE-LCHlch(74.91, 62.56, 111.84°)
OKLaboklab(77.57% -0.0686 0.1321)
OKLCHoklch(77.57% 0.149 117.4)
XYZxyz(38.0772, 48.1401, 13.0792)
Luminance0.4814 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFC246 #5946C2
analogous
#C29746 #AFC246 #71C246
triadic
#AFC246 #46AFC2 #C246AF
tetradic
#AFC246 #46C297 #5946C2 #C24671
square
#AFC246 #46C297 #5946C2 #C24671
split-complementary
#AFC246 #4671C2 #9746C2
monochromatic
#606A23 #899932 #AFC246 #C3D174 #D7E0A2

Accessibility & contrast

On white

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

On black

10.63
#AFC246 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFC246
10.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFC246#FFFFFF#000000##000000
##AFC2461.001.9810.6310.63
#FFFFFF1.981.0021.0021.00
#00000010.6321.001.001.00
##00000010.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#CFB836
Deuteranopia (green-blind)
#CDB94F
Tritanopia (blue-blind)
#B9B8A8
Achromatopsia (no color)
#B8B8B8

Design tokens & code

CSS
--color: #afc246;
/* rgb */ color: rgb(175, 194, 70);
/* oklch */ color: oklch(77.6% 0.149 117.4);
Tailwind
colors: {
  custom: {
    50: '#cad47f',
    500: '#afc246',
    950: '#000000',
  },
}
SCSS
$custom: #afc246;
$custom-light: #cad47f;
$custom-dark: #000000;
JSON
{
  "hex": "#afc246",
  "rgb": {
    "r": 175,
    "g": 194,
    "b": 70
  },
  "hsl": {
    "h": 69.194,
    "s": 50.407,
    "l": 51.765
  },
  "oklch": {
    "l": 0.77573,
    "c": 0.14881,
    "h": 117.4
  },
  "luminance": 0.4814
}

Semantic roles & 50–950 ramp

primary
#AFC246
secondary
#9F97CD
accent
#4EDA63
background
#FCFCF8
surface
#F9F9EF
border
#D2D2CA
text
#14140A
muted
#82827C

Preview Lab

Preview with #AFC246

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

Preview Lab → · Contrast checker → · Palette generator →

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