#AFC138#AFC138

#AFC138 is a light, vivid yellow. Relative luminance 0.475; OKLCH L 77.2% C 0.157 H 116.8°. Best body text is #000000 at 10.51:1 contrast (WCAG AA passes).

Color values

HEX#AFC138
RGBrgb(175, 193, 56)
HSLhsl(68, 55%, 49%)
HSVhsv(68, 71%, 76%)
CMYKcmyk(9.3%, 0%, 71%, 24.3%)
CIE-LABlab(74.53, -23.63, 63.11)
CIE-LCHlch(74.53, 67.38, 110.53°)
OKLaboklab(77.24% -0.0709 0.1405)
OKLCHoklch(77.24% 0.157 116.8)
XYZxyz(37.4639, 47.5399, 10.9431)
Luminance0.4754 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFC138 #4A38C1
analogous
#C18F38 #AFC138 #6BC138
triadic
#AFC138 #38AFC1 #C138AF
tetradic
#AFC138 #38C18F #4A38C1 #C1386B
square
#AFC138 #38C18F #4A38C1 #C1386B
split-complementary
#AFC138 #386BC1 #8F38C1
monochromatic
#59621C #84922A #AFC138 #C4D264 #D6E094

Accessibility & contrast

On white

2.00
#AFC138 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.51
#AFC138 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFC138
10.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFC138#FFFFFF#000000##000000
##AFC1381.002.0010.5110.51
#FFFFFF2.001.0021.0021.00
#00000010.5121.001.001.00
##00000010.5121.001.001.00

Color blindness preview

Protanopia (red-blind)
#CEB720
Deuteranopia (green-blind)
#CDB843
Tritanopia (blue-blind)
#BAB6A6
Achromatopsia (no color)
#B7B7B7

Design tokens & code

CSS
--color: #afc138;
/* rgb */ color: rgb(175, 193, 56);
/* oklch */ color: oklch(77.2% 0.157 116.8);
Tailwind
colors: {
  custom: {
    50: '#cad378',
    500: '#afc138',
    950: '#000000',
  },
}
SCSS
$custom: #afc138;
$custom-light: #cad378;
$custom-dark: #000000;
JSON
{
  "hex": "#afc138",
  "rgb": {
    "r": 175,
    "g": 193,
    "b": 56
  },
  "hsl": {
    "h": 67.883,
    "s": 55.02,
    "l": 48.824
  },
  "oklch": {
    "l": 0.77237,
    "c": 0.15739,
    "h": 116.8
  },
  "luminance": 0.47539
}

Semantic roles & 50–950 ramp

primary
#AFC138
secondary
#928ACB
accent
#49DE5D
background
#FCFCF7
surface
#F9F9EE
border
#D2D2C9
text
#141409
muted
#82827B

Preview Lab

Preview with #AFC138

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

Preview Lab → · Contrast checker → · Palette generator →

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